arsa  2.7
Public Member Functions | List of all members
irr::video::IContextManager Class Referenceabstract

#include <IContextManager.h>

Inheritance diagram for irr::video::IContextManager:
irr::IReferenceCounted

Public Member Functions

virtual bool initialize (const SIrrlichtCreationParameters &params, const SExposedVideoData &data)=0
 Initialize manager with device creation parameters and device window (passed as exposed video data) More...
 
virtual void terminate ()=0
 Terminate manager, any cleanup that is left over. Manager needs a new initialize to be usable again. More...
 
virtual bool generateSurface ()=0
 Create surface based on current window set. More...
 
virtual void destroySurface ()=0
 Destroy current surface. More...
 
virtual bool generateContext ()=0
 Create context based on current surface. More...
 
virtual void destroyContext ()=0
 Destroy current context. More...
 
virtual const SExposedVideoDatagetContext () const =0
 Get current context. More...
 
virtual bool activateContext (const SExposedVideoData &videoData, bool restorePrimaryOnZero=false)=0
 Change render context, disable old and activate new defined by videoData. More...
 
virtual bool swapBuffers ()=0
 Swap buffers. More...
 
- Public Member Functions inherited from irr::IReferenceCounted
 IReferenceCounted ()
 Constructor. More...
 
virtual ~IReferenceCounted ()
 Destructor. More...
 
void grab () const
 Grabs the object. Increments the reference counter by one. More...
 
bool drop () const
 Drops the object. Decrements the reference counter by one. More...
 
s32 getReferenceCount () const
 Get the reference count. More...
 
const c8getDebugName () const
 Returns the debug name of the object. More...
 

Additional Inherited Members

- Protected Member Functions inherited from irr::IReferenceCounted
void setDebugName (const c8 *newName)
 Sets the debug name of the object. More...
 

Detailed Description

Definition at line 16 of file IContextManager.h.

Member Function Documentation

◆ activateContext()

virtual bool irr::video::IContextManager::activateContext ( const SExposedVideoData videoData,
bool  restorePrimaryOnZero = false 
)
pure virtual

Change render context, disable old and activate new defined by videoData.

This is mostly used internally by IVideoDriver::beginScene(). But if you want to switch threads which access your OpenGL driver you will have to call this function as follows: Old thread gives up context with: activateContext(irr::video::SExposedVideoData()); New thread takes over context with: activateContext(videoDriver->getExposedVideoData()); Note that only 1 thread at a time may access an OpenGL context.

◆ destroyContext()

virtual void irr::video::IContextManager::destroyContext ( )
pure virtual

Destroy current context.

◆ destroySurface()

virtual void irr::video::IContextManager::destroySurface ( )
pure virtual

Destroy current surface.

◆ generateContext()

virtual bool irr::video::IContextManager::generateContext ( )
pure virtual

Create context based on current surface.

◆ generateSurface()

virtual bool irr::video::IContextManager::generateSurface ( )
pure virtual

Create surface based on current window set.

◆ getContext()

virtual const SExposedVideoData& irr::video::IContextManager::getContext ( ) const
pure virtual

Get current context.

◆ initialize()

virtual bool irr::video::IContextManager::initialize ( const SIrrlichtCreationParameters params,
const SExposedVideoData data 
)
pure virtual

Initialize manager with device creation parameters and device window (passed as exposed video data)

◆ swapBuffers()

virtual bool irr::video::IContextManager::swapBuffers ( )
pure virtual

Swap buffers.

◆ terminate()

virtual void irr::video::IContextManager::terminate ( )
pure virtual

Terminate manager, any cleanup that is left over. Manager needs a new initialize to be usable again.


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