OGRE-Next  4.0.0unstable
Object-Oriented Graphics Rendering Engine
Ogre::EGLContext Class Referenceabstract

#include <OgreEGLContext.h>

+ Inheritance diagram for Ogre::EGLContext:

Public Member Functions

 EGLContext (EGLDisplay eglDisplay, const EGLSupport *glsupport, ::EGLConfig fbconfig, ::EGLSurface drawable)
 
 EGLContext (EGLDisplay eglDisplay, EGLGLSupport *glsupport, ::EGLConfig fbconfig, ::EGLSurface drawable, ::EGLContext context=0)
 
virtual ~EGLContext ()
 
virtual ~EGLContext ()
 
virtual void _createInternalResources (EGLDisplay eglDisplay, ::EGLConfig glconfig, ::EGLSurface drawable, ::EGLContext shareContext)
 
virtual void _destroyInternalResources ()
 
GL3PlusContextclone () const
 Create a new context based on the same window/pbuffer as this context - mostly useful for additional threads. More...
 
virtual GLES2Contextclone () const =0
 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...
 
virtual void endCurrent ()
 This is called before another context is made current. More...
 
EGLSurface getDrawable () const
 
virtual void setCurrent ()
 Enable the context. More...
 
virtual void setCurrent ()
 Enable the context. More...
 
- Public Member Functions inherited from Ogre::GL3PlusContext
 GL3PlusContext ()
 
virtual ~GL3PlusContext ()
 
bool getInitialized ()
 
virtual void releaseContext ()
 Release the render context. More...
 
void setInitialized ()
 
- Public Member Functions inherited from Ogre::GLES2Context
 GLES2Context ()
 
virtual ~GLES2Context ()
 
bool getInitialized ()
 
virtual void releaseContext ()
 Release the render context. More...
 
void setInitialized ()
 

Public Attributes

EGLSurface mDrawable
 

Constructor & Destructor Documentation

◆ EGLContext() [1/2]

Ogre::EGLContext::EGLContext ( EGLDisplay  eglDisplay,
EGLGLSupport glsupport,
::EGLConfig  fbconfig,
::EGLSurface  drawable,
::EGLContext  context = 0 
)

◆ ~EGLContext() [1/2]

virtual Ogre::EGLContext::~EGLContext ( )
virtual

◆ EGLContext() [2/2]

Ogre::EGLContext::EGLContext ( EGLDisplay  eglDisplay,
const EGLSupport glsupport,
::EGLConfig  fbconfig,
::EGLSurface  drawable 
)

◆ ~EGLContext() [2/2]

virtual Ogre::EGLContext::~EGLContext ( )
virtual

Member Function Documentation

◆ _createInternalResources()

virtual void Ogre::EGLContext::_createInternalResources ( EGLDisplay  eglDisplay,
::EGLConfig  glconfig,
::EGLSurface  drawable,
::EGLContext  shareContext 
)
virtual

◆ _destroyInternalResources()

virtual void Ogre::EGLContext::_destroyInternalResources ( )
virtual

◆ clone() [1/2]

GL3PlusContext* Ogre::EGLContext::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::GL3PlusContext.

Reimplemented in Ogre::X11EGLContext, Ogre::Win32EGLContext, Ogre::EmscriptenEGLContext, and Ogre::AndroidEGLContext.

◆ clone() [2/2]

virtual GLES2Context* Ogre::EGLContext::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.

Implements Ogre::GL3PlusContext.

Implemented in Ogre::X11EGLContext, Ogre::Win32EGLContext, Ogre::EmscriptenEGLContext, and Ogre::AndroidEGLContext.

◆ endCurrent() [1/2]

virtual void Ogre::EGLContext::endCurrent ( )
virtual

This is called before another context is made current.

By default, nothing is done here.

Implements Ogre::GL3PlusContext.

◆ endCurrent() [2/2]

virtual void Ogre::EGLContext::endCurrent ( )
virtual

This is called before another context is made current.

By default, nothing is done here.

Implements Ogre::GL3PlusContext.

◆ getDrawable()

EGLSurface Ogre::EGLContext::getDrawable ( ) const

◆ setCurrent() [1/2]

virtual void Ogre::EGLContext::setCurrent ( )
virtual

Enable the context.

All subsequent rendering commands will go here.

Implements Ogre::GL3PlusContext.

◆ setCurrent() [2/2]

virtual void Ogre::EGLContext::setCurrent ( )
virtual

Enable the context.

All subsequent rendering commands will go here.

Implements Ogre::GL3PlusContext.

Member Data Documentation

◆ mDrawable

EGLSurface Ogre::EGLContext::mDrawable

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