xoreos  0.0.5
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
Graphics::GLContainer Class Referenceabstract

A container of OpenGL elements. More...

#include <glcontainer.h>

Inheritance diagram for Graphics::GLContainer:
Inheritance graph
[legend]
Collaboration diagram for Graphics::GLContainer:
Collaboration graph
[legend]

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
 

Detailed Description

A container of OpenGL elements.

Definition at line 35 of file glcontainer.h.

Constructor & Destructor Documentation

◆ GLContainer()

Graphics::GLContainer::GLContainer ( )

Definition at line 34 of file glcontainer.cpp.

References Graphics::Queueable::addToQueue(), and Graphics::kQueueGLContainer.

Here is the call graph for this function:

◆ ~GLContainer()

Graphics::GLContainer::~GLContainer ( )

Definition at line 38 of file glcontainer.cpp.

References Graphics::kQueueGLContainer, and Graphics::Queueable::removeFromQueue().

Here is the call graph for this function:

Member Function Documentation

◆ destroy()

void Graphics::GLContainer::destroy ( )

Definition at line 53 of file glcontainer.cpp.

References _built, doDestroy(), Common::isMainThread(), and RequestMan.

Referenced by Events::EventsManager::requestDestroyGLContainer().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ doDestroy()

virtual void Graphics::GLContainer::doDestroy ( )
protectedpure virtual

◆ doRebuild()

virtual void Graphics::GLContainer::doRebuild ( )
protectedpure virtual

◆ 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().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _built

bool Graphics::GLContainer::_built
private

Definition at line 48 of file glcontainer.h.

Referenced by destroy(), and rebuild().


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