OGRE  1.10.5
Object-Oriented Graphics Rendering Engine
Ogre::NaClGLContext Class Reference

#include <OgreNaClGLContext.h>

+ Inheritance diagram for Ogre::NaClGLContext:

Public Member Functions

 NaClGLContext (const NaClWindow *window, const NaClGLSupport *glsupport, pp::Instance *instance, pp::CompletionCallback *swapCallback)
 
virtual ~NaClGLContext ()
 
virtual void barrier ()
 Sequence gl commands enqueued in current context to be completed before commands that would be enqueued by other contexts after this moment, does not wait for completion. More...
 
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 ()
 

Constructor & Destructor Documentation

◆ NaClGLContext()

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

◆ ~NaClGLContext()

virtual Ogre::NaClGLContext::~NaClGLContext ( )
virtual

Member Function Documentation

◆ setCurrent()

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

Enable the context.

All subsequent rendering commands will go here.

Implements Ogre::GLContext.

◆ endCurrent()

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

This is called before another context is made current.

By default, nothing is done here.

Implements Ogre::GLContext.

◆ clone()

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::GLContext.

◆ swapBuffers()

void Ogre::NaClGLContext::swapBuffers ( )

◆ resize()

void Ogre::NaClGLContext::resize ( )

◆ Graphics3DContextLost()

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

The Graphics3DClient interface - pp::Graphics3DClient_Dev.

◆ barrier()

virtual void Ogre::GLContext::barrier ( )
inlinevirtualinherited

Sequence gl commands enqueued in current context to be completed before commands that would be enqueued by other contexts after this moment, does not wait for completion.

This ensures for example that resources created in the current context would be available in other shared contexts. Implementation could flush commands from per-context CPU queue to single GPU queue, use glFenceSync/glWaitSync, eglWaitClient or any other mechanism to accomplish the goal.

◆ getInitialized()

bool Ogre::GLContext::getInitialized ( )
inlineinherited

◆ setInitialized()

void Ogre::GLContext::setInitialized ( )
inlineinherited

◆ releaseContext()

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

Release the render context.


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