xoreos
0.0.5
|
A container of OpenGL elements. More...
#include <glcontainer.h>
Public Member Functions | |
GLContainer () | |
~GLContainer () | |
void | rebuild () |
void | destroy () |
Public Member Functions inherited from Graphics::Queueable | |
Queueable () | |
virtual | ~Queueable () |
virtual bool | operator< (const Queueable &q) const |
Protected Member Functions | |
virtual void | doRebuild ()=0 |
virtual void | doDestroy ()=0 |
Protected Member Functions inherited from Graphics::Queueable | |
bool | isInQueue (QueueType queue) const |
void | addToQueue (QueueType queue) |
void | removeFromQueue (QueueType queue) |
void | lockQueue (QueueType queue) |
void | unlockQueue (QueueType queue) |
void | sortQueue (QueueType queue) |
Private Attributes | |
bool | _built |
A container of OpenGL elements.
Definition at line 35 of file glcontainer.h.
Graphics::GLContainer::GLContainer | ( | ) |
Definition at line 34 of file glcontainer.cpp.
References Graphics::Queueable::addToQueue(), and Graphics::kQueueGLContainer.
Graphics::GLContainer::~GLContainer | ( | ) |
Definition at line 38 of file glcontainer.cpp.
References Graphics::kQueueGLContainer, and Graphics::Queueable::removeFromQueue().
void Graphics::GLContainer::destroy | ( | ) |
Definition at line 53 of file glcontainer.cpp.
References _built, doDestroy(), Common::isMainThread(), and RequestMan.
Referenced by Events::EventsManager::requestDestroyGLContainer().
|
protectedpure virtual |
Implemented in Video::VideoDecoder, Graphics::Aurora::Model, Graphics::Shader::ShaderProgram, Graphics::Shader::ShaderObject, Graphics::Aurora::Texture, Graphics::Mesh::Mesh, and Graphics::Aurora::Cube.
Referenced by destroy().
|
protectedpure virtual |
Implemented in Video::VideoDecoder, Graphics::Aurora::Model, Graphics::Shader::ShaderProgram, Graphics::Shader::ShaderObject, Graphics::Aurora::Texture, Graphics::Mesh::Mesh, and Graphics::Aurora::Cube.
Referenced by rebuild().
void Graphics::GLContainer::rebuild | ( | ) |
Definition at line 42 of file glcontainer.cpp.
References _built, doRebuild(), Common::isMainThread(), and RequestMan.
Referenced by Graphics::Aurora::NFTRFont::drawGlyphs(), Video::VideoDecoder::initVideo(), and Events::EventsManager::requestRebuildGLContainer().
|
private |
Definition at line 48 of file glcontainer.h.