OGRE-Next
4.0.0unstable
Object-Oriented Graphics Rendering Engine
|
#include <OgreOSXCocoaContext.h>
Public Member Functions | |
CocoaContext (NSOpenGLContext *context, NSOpenGLPixelFormat *pixelFormat) | |
virtual | ~CocoaContext () |
virtual GL3PlusContext * | clone () const |
Create a new context based on the same window/pbuffer as this context - mostly useful for additional threads. More... | |
virtual void | endCurrent () |
This is called before another context is made current. More... | |
NSOpenGLContext * | getContext () |
Grab the NSOpenGLContext if it exists. More... | |
NSOpenGLPixelFormat * | getPixelFormat () |
Grab the NSOpenGLPixelFormat if it exists. More... | |
virtual void | setCurrent () |
Enable the context. More... | |
Public Member Functions inherited from Ogre::GL3PlusContext | |
GL3PlusContext () | |
virtual | ~GL3PlusContext () |
bool | getInitialized () |
virtual void | releaseContext () |
Release the render context. More... | |
void | setInitialized () |
Ogre::CocoaContext::CocoaContext | ( | NSOpenGLContext * | context, |
NSOpenGLPixelFormat * | pixelFormat | ||
) |
|
virtual |
|
virtual |
Create a new context based on the same window/pbuffer as this context - mostly useful for additional threads.
Implements Ogre::GL3PlusContext.
|
virtual |
This is called before another context is made current.
By default, nothing is done here.
Implements Ogre::GL3PlusContext.
NSOpenGLContext* Ogre::CocoaContext::getContext | ( | ) |
Grab the NSOpenGLContext if it exists.
NSOpenGLPixelFormat* Ogre::CocoaContext::getPixelFormat | ( | ) |
Grab the NSOpenGLPixelFormat if it exists.
|
virtual |
Enable the context.
All subsequent rendering commands will go here.
Implements Ogre::GL3PlusContext.