Class that encapsulates an GL context. More...
#include <OgreGLESContext.h>
Public Member Functions | |
GLESContext () | |
virtual | ~GLESContext () |
virtual GLESContext * | 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... | |
bool | getInitialized () |
virtual void | setCurrent ()=0 |
Enable the context. More... | |
void | setInitialized () |
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 42 of file OgreGLESContext.h.
Ogre::GLESContext::GLESContext | ( | ) |
|
virtual |
|
pure virtual |
Create a new context based on the same window/pbuffer as this context - mostly useful for additional threads.
Implemented in Ogre::EAGLESContext, Ogre::EGLContext, Ogre::EGLContext, Ogre::X11EGLContext, Ogre::Win32EGLContext, Ogre::X11EGLContext, Ogre::Win32EGLContext, Ogre::AndroidEGLContext, and Ogre::AndroidEGLContext.
|
pure virtual |
This is called before another context is made current.
By default, nothing is done here.
Implemented in Ogre::EAGLESContext, Ogre::EGLContext, and Ogre::EGLContext.
|
inline |
Definition at line 59 of file OgreGLESContext.h.
|
pure virtual |
Enable the context.
All subsequent rendering commands will go here.
Implemented in Ogre::EAGLESContext, Ogre::EGLContext, and Ogre::EGLContext.
|
inline |
Definition at line 60 of file OgreGLESContext.h.
|
protected |
Definition at line 69 of file OgreGLESContext.h.