OGRE  1.9
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Ogre::NaClGLContext Class Reference

#include <OgreNaClGLContext.h>

+ Inheritance diagram for Ogre::NaClGLContext:
+ Collaboration diagram for Ogre::NaClGLContext:

Public Member Functions

 NaClGLContext (const NaClWindow *window, const NaClGLSupport *glsupport, pp::Instance *instance, pp::CompletionCallback *swapCallback)
 
virtual ~NaClGLContext ()
 
GLES2Contextclone () const
 Create a new context based on the same window/pbuffer as this context - mostly useful for additional threads. More...
 
virtual void endCurrent ()
 This is called before another context is made current. More...
 
bool getInitialized ()
 
virtual void Graphics3DContextLost ()
 The Graphics3DClient interface - pp::Graphics3DClient_Dev. More...
 
virtual void releaseContext ()
 Release the render context. More...
 
void resize ()
 
virtual void setCurrent ()
 Enable the context. More...
 
void setInitialized ()
 
void swapBuffers ()
 

Protected Attributes

bool initialized
 

Private Attributes

pp::Graphics3D mContext
 
const NaClGLSupportmGLSupport
 
unsigned int mHeight
 
pp::Instance * mInstance
 
pp::CompletionCallback * mSwapCallback
 
unsigned int mWidth
 
const NaClWindowmWindow
 

Detailed Description

Definition at line 39 of file OgreNaClGLContext.h.

Constructor & Destructor Documentation

Ogre::NaClGLContext::NaClGLContext ( const NaClWindow window,
const NaClGLSupport glsupport,
pp::Instance *  instance,
pp::CompletionCallback *  swapCallback 
)
virtual Ogre::NaClGLContext::~NaClGLContext ( )
virtual

Member Function Documentation

GLES2Context* Ogre::NaClGLContext::clone ( ) const
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.

Implements Ogre::GLES2Context.

virtual void Ogre::NaClGLContext::endCurrent ( )
virtual

This is called before another context is made current.

By default, nothing is done here.

Implements Ogre::GLES2Context.

bool Ogre::GLES2Context::getInitialized ( )
inlineinherited

Definition at line 58 of file OgreGLES2Context.h.

virtual void Ogre::NaClGLContext::Graphics3DContextLost ( )
virtual

The Graphics3DClient interface - pp::Graphics3DClient_Dev.

virtual void Ogre::GLES2Context::releaseContext ( )
inlinevirtualinherited

Release the render context.

Definition at line 70 of file OgreGLES2Context.h.

void Ogre::NaClGLContext::resize ( )
virtual void Ogre::NaClGLContext::setCurrent ( )
virtual

Enable the context.

All subsequent rendering commands will go here.

Implements Ogre::GLES2Context.

void Ogre::GLES2Context::setInitialized ( )
inlineinherited

Definition at line 59 of file OgreGLES2Context.h.

void Ogre::NaClGLContext::swapBuffers ( )

Member Data Documentation

bool Ogre::GLES2Context::initialized
protectedinherited

Definition at line 73 of file OgreGLES2Context.h.

pp::Graphics3D Ogre::NaClGLContext::mContext
private

Definition at line 46 of file OgreNaClGLContext.h.

const NaClGLSupport* Ogre::NaClGLContext::mGLSupport
private

Definition at line 42 of file OgreNaClGLContext.h.

unsigned int Ogre::NaClGLContext::mHeight
private

Definition at line 48 of file OgreNaClGLContext.h.

pp::Instance* Ogre::NaClGLContext::mInstance
private

Definition at line 44 of file OgreNaClGLContext.h.

pp::CompletionCallback* Ogre::NaClGLContext::mSwapCallback
private

Definition at line 45 of file OgreNaClGLContext.h.

unsigned int Ogre::NaClGLContext::mWidth
private

Definition at line 47 of file OgreNaClGLContext.h.

const NaClWindow* Ogre::NaClGLContext::mWindow
private

Definition at line 43 of file OgreNaClGLContext.h.


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