Public Member Functions | Protected Attributes
Ogre::GLESContext Class Reference

Class that encapsulates an GL context. More...

#include <OgreGLESContext.h>

Inheritance diagram for Ogre::GLESContext:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 GLESContext ()
virtual ~GLESContext ()
virtual void setCurrent ()=0
 Enable the context.
virtual void endCurrent ()=0
 This is called before another context is made current.
bool getInitialized ()
void setInitialized ()
virtual GLESContextclone () const =0
 Create a new context based on the same window/pbuffer as this context - mostly useful for additional threads.

Protected Attributes

bool initialized

Detailed Description

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.


Constructor & Destructor Documentation

virtual Ogre::GLESContext::~GLESContext ( ) [virtual]

Member Function Documentation

virtual GLESContext* Ogre::GLESContext::clone ( ) const [pure 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.

Implemented in Ogre::EAGLESContext, Ogre::EGLContext, Ogre::EGLContext, Ogre::X11EGLContext, Ogre::Win32EGLContext, Ogre::X11EGLContext, Ogre::SymbianEGLContext, and Ogre::Win32EGLContext.

virtual void Ogre::GLESContext::endCurrent ( ) [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.

Definition at line 59 of file OgreGLESContext.h.

virtual void Ogre::GLESContext::setCurrent ( ) [pure virtual]

Enable the context.

All subsequent rendering commands will go here.

Implemented in Ogre::EAGLESContext, Ogre::EGLContext, and Ogre::EGLContext.

Definition at line 60 of file OgreGLESContext.h.


Member Data Documentation

Definition at line 69 of file OgreGLESContext.h.


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

Copyright © 2012 Torus Knot Software Ltd
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Fri May 25 2012 21:49:23