Public Member Functions | Protected Attributes | Private Attributes
Ogre::NaClGLContext Class Reference

#include <OgreNaClGLContext.h>

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

List of all members.

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.
virtual void endCurrent ()
 This is called before another context is made current.
bool getInitialized ()
virtual void Graphics3DContextLost ()
 The Graphics3DClient interface - pp::Graphics3DClient_Dev.
virtual void releaseContext ()
 Release the render context.
void resize ()
virtual void setCurrent ()
 Enable the context.
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

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 ( ) [inherited]

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 ( ) [virtual, inherited]

Release the render context.

Definition at line 70 of file OgreGLES2Context.h.

virtual void Ogre::NaClGLContext::setCurrent ( ) [virtual]

Enable the context.

All subsequent rendering commands will go here.

Implements Ogre::GLES2Context.

void Ogre::GLES2Context::setInitialized ( ) [inherited]

Definition at line 59 of file OgreGLES2Context.h.


Member Data Documentation

bool Ogre::GLES2Context::initialized [protected, inherited]

Definition at line 73 of file OgreGLES2Context.h.

pp::Graphics3D Ogre::NaClGLContext::mContext [private]

Definition at line 46 of file OgreNaClGLContext.h.

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.

Definition at line 43 of file OgreNaClGLContext.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 Mon Jul 27 2020 13:41:22