Class that encapsulates an GL context. More...
#include <OgreOSXContext.h>
Public Member Functions | |
OSXContext () | |
virtual | ~OSXContext () |
virtual GLContext * | clone () const =0 |
Create a new context based on the same window/pbuffer as this context - mostly useful for additional threads. More... | |
virtual void | endCurrent ()=0 |
This is called before another context is made current. More... | |
virtual String | getContextType ()=0 |
Return the type of context currently assoiciated with this OSXContext, this is needed because OSX has several different types of contexts depending on the application needs. More... | |
bool | getInitialized () |
virtual void | releaseContext () |
Release the render context. More... | |
virtual void | setCurrent ()=0 |
See GLContext. More... | |
void | setInitialized () |
Protected Member Functions | |
void | _unregisterContext () |
Must be called from destructor of final descendant. More... | |
Protected Attributes | |
bool | initialized |
Class that encapsulates an GL context.
(IE a window/pbuffer). This is a virtual base class which should be implemented in a GLSupport. This object can also be used to cache renderstate if we decide to do so in the future.
Definition at line 41 of file OgreOSXContext.h.
Ogre::OSXContext::OSXContext | ( | ) |
|
virtual |
|
protected |
Must be called from destructor of final descendant.
|
pure virtual |
Create a new context based on the same window/pbuffer as this context - mostly useful for additional threads.
Implements Ogre::GLContext.
Implemented in Ogre::OSXCarbonContext, Ogre::OSXCGLContext, and Ogre::OSXCocoaContext.
|
pure virtual |
This is called before another context is made current.
By default, nothing is done here.
Implements Ogre::GLContext.
Implemented in Ogre::OSXCarbonContext, Ogre::OSXCGLContext, and Ogre::OSXCocoaContext.
|
pure virtual |
Return the type of context currently assoiciated with this OSXContext, this is needed because OSX has several different types of contexts depending on the application needs.
Implemented in Ogre::OSXCarbonContext, Ogre::OSXCGLContext, and Ogre::OSXCocoaContext.
|
inlineinherited |
Definition at line 57 of file OgreGLContext.h.
|
inlinevirtualinherited |
Release the render context.
Reimplemented in Ogre::Win32Context, and Ogre::Win32Context.
Definition at line 69 of file OgreGLContext.h.
|
pure virtual |
See GLContext.
Implements Ogre::GLContext.
Implemented in Ogre::OSXCarbonContext, Ogre::OSXCGLContext, and Ogre::OSXCocoaContext.
|
inlineinherited |
Definition at line 58 of file OgreGLContext.h.
|
protectedinherited |
Definition at line 71 of file OgreGLContext.h.