Public Member Functions | Protected Attributes
Ogre::GL3PlusContext Class Reference

Class that encapsulates an GL context. More...

#include <OgreGL3PlusContext.h>

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

List of all members.

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.
virtual void endCurrent ()=0
 This is called before another context is made current.
bool getInitialized ()
virtual void releaseContext ()
 Release the render context.
virtual void setCurrent ()=0
 Enable the context.
void setInitialized ()

Protected Attributes

bool initialized

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.

Definition at line 41 of file OgreGL3PlusContext.h.


Constructor & Destructor Documentation


Member Function Documentation

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::CocoaContext, Ogre::GLXContext, Ogre::GLXContext, Ogre::Win32Context, and Ogre::Win32Context.

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::CocoaContext, Ogre::GLXContext, Ogre::GLXContext, Ogre::Win32Context, and Ogre::Win32Context.

Definition at line 58 of file OgreGL3PlusContext.h.

virtual void Ogre::GL3PlusContext::releaseContext ( ) [virtual]

Release the render context.

Reimplemented in Ogre::Win32Context, and Ogre::Win32Context.

Definition at line 70 of file OgreGL3PlusContext.h.

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

Enable the context.

All subsequent rendering commands will go here.

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

Definition at line 59 of file OgreGL3PlusContext.h.


Member Data Documentation

Definition at line 73 of file OgreGL3PlusContext.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:03