Class that encapsulates an GL context. More...
#include <OgreGL3PlusContext.h>
Public Member Functions | |
GL3PlusContext () | |
virtual | ~GL3PlusContext () |
virtual GL3PlusContext * | 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 | releaseContext () |
Release the render context. More... | |
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 GL3PlusSupport. This object can also be used to cache renderstate if we decide to do so in the future.
Definition at line 41 of file OgreGL3PlusContext.h.
Ogre::GL3PlusContext::GL3PlusContext | ( | ) |
|
virtual |
|
pure virtual |
Create a new context based on the same window/pbuffer as this context - mostly useful for additional threads.
Implemented in Ogre::CocoaContext.
|
pure virtual |
This is called before another context is made current.
By default, nothing is done here.
Implemented in Ogre::CocoaContext.
bool Ogre::GL3PlusContext::getInitialized | ( | ) |
Definition at line 58 of file OgreGL3PlusContext.h.
|
virtual |
Release the render context.
Definition at line 70 of file OgreGL3PlusContext.h.
|
pure virtual |
Enable the context.
All subsequent rendering commands will go here.
Implemented in Ogre::CocoaContext.
void Ogre::GL3PlusContext::setInitialized | ( | ) |
Definition at line 59 of file OgreGL3PlusContext.h.
|
protected |
Definition at line 73 of file OgreGL3PlusContext.h.
Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Tue Apr 13 2021 08:53:15