OGRE-Next  4.0.0unstable
Object-Oriented Graphics Rendering Engine
Ogre::CocoaContext Class Reference

#include <OgreOSXCocoaContext.h>

+ Inheritance diagram for Ogre::CocoaContext:

Public Member Functions

 CocoaContext (NSOpenGLContext *context, NSOpenGLPixelFormat *pixelFormat)
 
virtual ~CocoaContext ()
 
virtual GL3PlusContextclone () 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 ()
 

Constructor & Destructor Documentation

◆ CocoaContext()

Ogre::CocoaContext::CocoaContext ( NSOpenGLContext *  context,
NSOpenGLPixelFormat *  pixelFormat 
)

◆ ~CocoaContext()

virtual Ogre::CocoaContext::~CocoaContext ( )
virtual

Member Function Documentation

◆ clone()

virtual GL3PlusContext* Ogre::CocoaContext::clone ( ) const
virtual

Create a new context based on the same window/pbuffer as this context - mostly useful for additional threads.

Note
The caller is responsible for deleting the returned context.

Implements Ogre::GL3PlusContext.

◆ endCurrent()

virtual void Ogre::CocoaContext::endCurrent ( )
virtual

This is called before another context is made current.

By default, nothing is done here.

Implements Ogre::GL3PlusContext.

◆ getContext()

NSOpenGLContext* Ogre::CocoaContext::getContext ( )

Grab the NSOpenGLContext if it exists.

◆ getPixelFormat()

NSOpenGLPixelFormat* Ogre::CocoaContext::getPixelFormat ( )

Grab the NSOpenGLPixelFormat if it exists.

◆ setCurrent()

virtual void Ogre::CocoaContext::setCurrent ( )
virtual

Enable the context.

All subsequent rendering commands will go here.

Implements Ogre::GL3PlusContext.


The documentation for this class was generated from the following file: