OGRE
1.12.13
Object-Oriented Graphics Rendering Engine
|
Class that encapsulates an GL context. More...
#include <OgreGLContext.h>
Public Member Functions | |
GLContext () | |
virtual | ~GLContext () |
std::vector< uint32 > & | _getFboDeferredForDestruction () |
FBOs deferred for destruction in proper GL context. More... | |
std::vector< uint32 > & | _getVaoDeferredForDestruction () |
VAOs deferred for destruction in proper GL context. More... | |
virtual GLContext * | clone () const =0 |
Create a new context based on the same window/pbuffer as this context - mostly useful for additional threads. More... | |
template<class StateCacheManager > | |
StateCacheManager * | createOrRetrieveStateCacheManager () |
Get the state cache manager, creating it on demand. More... | |
virtual void | endCurrent ()=0 |
This is called before another context is made current. More... | |
bool | getInitialized () |
virtual void | releaseContext () |
Release the render context. More... | |
virtual void | setCurrent ()=0 |
Enable the context. More... | |
void | setInitialized () |
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.
|
inline |
|
inlinevirtual |
|
pure virtual |
Enable the context.
All subsequent rendering commands will go here.
|
pure virtual |
This is called before another context is made current.
By default, nothing is done here.
|
inline |
|
inline |
|
pure virtual |
Create a new context based on the same window/pbuffer as this context - mostly useful for additional threads.
|
inlinevirtual |
Release the render context.
|
inline |
Get the state cache manager, creating it on demand.
|
inline |
VAOs deferred for destruction in proper GL context.
|
inline |
FBOs deferred for destruction in proper GL context.