OGRE 2.1
Object-Oriented Graphics Rendering Engine
|
Class that encapsulates an GL context. More...
#include <OgreGLES2Context.h>
Public Member Functions | |
GLES2Context () | |
virtual | ~GLES2Context () |
virtual GLES2Context * | clone () const =0 |
Create a new context based on the same window/pbuffer as this context - mostly useful for additional threads. | |
virtual void | endCurrent ()=0 |
This is called before another context is made current. | |
bool | getInitialized () |
virtual void | releaseContext () |
Release the render context. | |
virtual void | setCurrent ()=0 |
Enable the context. | |
void | setInitialized () |
Class that encapsulates an GL context.
(IE a window/pbuffer). This is a virtual base class which should be implemented in a GLES2Support. This object can also be used to cache renderstate if we decide to do so in the future.
Ogre::GLES2Context::GLES2Context | ( | ) |
|
virtual |
|
pure virtual |
Create a new context based on the same window/pbuffer as this context - mostly useful for additional threads.
Implemented in Ogre::AndroidEGLContext, Ogre::EmscriptenEGLContext, Ogre::Win32EGLContext, Ogre::X11EGLContext, Ogre::NaClGLContext, and Ogre::EGLContext.
This is called before another context is made current.
By default, nothing is done here.
Implemented in Ogre::EGLContext, and Ogre::NaClGLContext.
|
inline |
Enable the context.
All subsequent rendering commands will go here.
Implemented in Ogre::EGLContext, and Ogre::NaClGLContext.
|
inline |