OGRE-Next  3.0.0
Object-Oriented Graphics Rendering Engine
Ogre::GL3PlusContext Class Referenceabstract

Class that encapsulates an GL context. More...

#include <OgreGL3PlusContext.h>

+ Inheritance diagram for Ogre::GL3PlusContext:

Public Member Functions

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

Detailed Description

Class that encapsulates an GL context.

(IE a window/pbuffer). This is a virtual base class which should be implemented in a GL3PlusSupport. This object can also be used to cache renderstate if we decide to do so in the future.

Constructor & Destructor Documentation

◆ GL3PlusContext()

Ogre::GL3PlusContext::GL3PlusContext ( )

◆ ~GL3PlusContext()

virtual Ogre::GL3PlusContext::~GL3PlusContext ( )
virtual

Member Function Documentation

◆ clone()

virtual GL3PlusContext* Ogre::GL3PlusContext::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::GLXContext, Ogre::EGLContext, Ogre::X11EGLContext, Ogre::Win32EGLContext, Ogre::EmscriptenEGLContext, Ogre::AndroidEGLContext, Ogre::Win32Context, Ogre::CocoaContext, Ogre::EglPBufferContext, and Ogre::EGLContext.

◆ endCurrent()

virtual void Ogre::GL3PlusContext::endCurrent ( )
pure virtual

This is called before another context is made current.

By default, nothing is done here.

Implemented in Ogre::GLXContext, Ogre::EGLContext, Ogre::Win32Context, Ogre::CocoaContext, Ogre::EglPBufferContext, and Ogre::EGLContext.

◆ getInitialized()

bool Ogre::GL3PlusContext::getInitialized ( )
inline

◆ releaseContext()

virtual void Ogre::GL3PlusContext::releaseContext ( )
inlinevirtual

Release the render context.

Reimplemented in Ogre::Win32Context.

◆ setCurrent()

virtual void Ogre::GL3PlusContext::setCurrent ( )
pure virtual

Enable the context.

All subsequent rendering commands will go here.

Implemented in Ogre::GLXContext, Ogre::EGLContext, Ogre::Win32Context, Ogre::CocoaContext, Ogre::EglPBufferContext, and Ogre::EGLContext.

◆ setInitialized()

void Ogre::GL3PlusContext::setInitialized ( )
inline

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