#include <IContextManager.h>
Definition at line 16 of file IContextManager.h.
◆ 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 |
◆ destroySurface()
virtual void irr::video::IContextManager::destroySurface |
( |
| ) |
|
|
pure virtual |
◆ 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()
◆ initialize()
Initialize manager with device creation parameters and device window (passed as exposed video data)
◆ swapBuffers()
virtual bool irr::video::IContextManager::swapBuffers |
( |
| ) |
|
|
pure virtual |
◆ 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: