OgreOSXGL3PlusSupport.h
Go to the documentation of this file.
1 /*
2 -----------------------------------------------------------------------------
3 This source file is part of OGRE
4 (Object-oriented Graphics Rendering Engine)
5 For the latest info, see http://www.ogre3d.org
6 
7 Copyright (c) 2000-2013 Torus Knot Software Ltd
8 
9 Permission is hereby granted, free of charge, to any person obtaining a copy
10 of this software and associated documentation files (the "Software"), to deal
11 in the Software without restriction, including without limitation the rights
12 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13 copies of the Software, and to permit persons to whom the Software is
14 furnished to do so, subject to the following conditions:
15 
16 The above copyright notice and this permission notice shall be included in
17 all copies or substantial portions of the Software.
18 
19 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25 THE SOFTWARE.
26 -----------------------------------------------------------------------------
27 */
28 
29 #ifndef OGRE_OSXGLSupport_H
30 #define OGRE_OSXGLSupport_H
31 
32 #include "OgreGL3PlusSupport.h"
33 
34 namespace Ogre
35 {
36  class GL3PlusPBuffer;
37 
39 {
40 public:
43 
49  void addConfig( void );
50 
54  String validateConfig( void );
55 
57  RenderWindow* createWindow( bool autoCreateWindow, GL3PlusRenderSystem* renderSystem, const String& windowTitle );
58 
60  virtual RenderWindow* newWindow( const String &name, unsigned int width, unsigned int height,
61  bool fullScreen, const NameValuePairList *miscParams = 0 );
62 
66  void start();
67 
71  void stop();
72 
76  void* getProcAddress( const char *name );
77  void* getProcAddress( const String& procname );
78 
79  virtual bool supportsPBuffers();
80 
81  // Core Foundation Array callback function for sorting, must be static for the function ptr
82  static CFComparisonResult _compareModes (const void *val1, const void *val2, void *context);
83  // Core Fondation Dictionary helper functions, also static for ease of use in above static
84  static Boolean _getDictionaryBoolean(CFDictionaryRef dict, const void* key);
85  static long _getDictionaryLong(CFDictionaryRef dict, const void* key);
86 
87 }; // class OSXGL3PlusSupport
88 
89 } // namespace Ogre
90 
91 #endif // OGRE_OSXGLSupport_H
Ogre
Definition: OgreAndroidLogListener.h:34
Ogre::OSXGL3PlusSupport::start
void start()
Start anything special.
Ogre::OSXGL3PlusSupport::newWindow
virtual RenderWindow * newWindow(const String &name, unsigned int width, unsigned int height, bool fullScreen, const NameValuePairList *miscParams=0)
Ogre::OSXGL3PlusSupport::~OSXGL3PlusSupport
~OSXGL3PlusSupport()
Ogre::OSXGL3PlusSupport::_getDictionaryLong
static long _getDictionaryLong(CFDictionaryRef dict, const void *key)
Ogre::RenderWindow
Manages the target rendering window.
Definition: OgreRenderWindow.h:62
Ogre::OSXGL3PlusSupport::validateConfig
String validateConfig(void)
Make sure all the extra options are valid.
Ogre::String
_StringBase String
Definition: OgrePrerequisites.h:439
Ogre::NameValuePairList
map< String, String >::type NameValuePairList
Name / value parameter pair (first = name, second = value)
Definition: OgreCommon.h:550
Ogre::OSXGL3PlusSupport::stop
void stop()
Stop anything special.
Ogre::OSXGL3PlusSupport::createWindow
RenderWindow * createWindow(bool autoCreateWindow, GL3PlusRenderSystem *renderSystem, const String &windowTitle)
Ogre::OSXGL3PlusSupport
Definition: OgreOSXGL3PlusSupport.h:38
Ogre::OSXGL3PlusSupport::addConfig
void addConfig(void)
Add any special config values to the system.
Ogre::OSXGL3PlusSupport::supportsPBuffers
virtual bool supportsPBuffers()
Ogre::OSXGL3PlusSupport::_compareModes
static CFComparisonResult _compareModes(const void *val1, const void *val2, void *context)
OgreGL3PlusSupport.h
Ogre::OSXGL3PlusSupport::OSXGL3PlusSupport
OSXGL3PlusSupport()
Ogre::GL3PlusSupport
Definition: OgreGL3PlusSupport.h:40
Ogre::OSXGL3PlusSupport::_getDictionaryBoolean
static Boolean _getDictionaryBoolean(CFDictionaryRef dict, const void *key)
Ogre::OSXGL3PlusSupport::getProcAddress
void * getProcAddress(const char *name)
Get the address of a function.
Ogre::GL3PlusRenderSystem
Implementation of GL 3 as a rendering system.
Definition: OgreGL3PlusRenderSystem.h:51

Copyright © 2012 Torus Knot Software Ltd
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Tue Apr 13 2021 08:53:15