Wraith  0.1.5
Basic 3D game engine in C++
Drawable Class Reference
Inheritance diagram for Drawable:
Inheritance graph
Collaboration diagram for Drawable:
Collaboration graph

Public Member Functions

 Drawable (const Drawable &)=default
 
Drawableoperator= (const Drawable &)=default
 
 Drawable (Drawable &&)=default
 
Drawableoperator= (Drawable &&)=default
 

Protected Member Functions

void submitDrawRegistration ()
 Submit draw registration to current scene. More...
 
void submitDrawDeregistration ()
 Submit draw deregistration to current scene. More...
 
void submitDraw2DRegistration ()
 Submit draw 2D registration to current scene. More...
 
void submitDraw2DDeregistration ()
 Submit draw 2D deregistration from current scene. More...
 
bool isRegisteredForDraw () const
 Query if this object is registered for draw. More...
 
bool isRegisteredForDraw2D () const
 Query if this object is registered for draw 2D. More...
 

Private Member Functions

void setDeleteReference (const DrawableManager::StorageListReference &)
 
DrawableManager::StorageListReference getDeleteReference () const
 
void setDeleteReference2D (const Drawable2DManager::StorageListReference &)
 
Drawable2DManager::StorageListReference getDeleteReference2D () const
 
void registerToScene ()
 Registers to the current scene. More...
 
void deregisterFromScene ()
 Deregisters from the current scene. More...
 
void register2DToScene ()
 Registers Draw2D to current scene. More...
 
void deregister2DFromScene ()
 Deregisters Draw2D from current scene. More...
 
virtual void draw ()
 Draw callback this object. More...
 
virtual void draw2D ()
 Draw2D callback for this object. More...
 

Static Private Member Functions

static void DebugPrint (const std::string &message)
 

Private Attributes

DrawableManager::StorageListReference _deleteReference
 
DrawRegistrationCommand_pDrawRegistrationCommand
 
DrawDeregistrationCommand_pDrawDeregistrationCommand
 
RegistrationState _currentRegistrationState
 
Drawable2DManager::StorageListReference _deleteReference2D
 
Draw2DRegistrationCommand_pDraw2DRegistrationCommand
 
Draw2DDeregistrationCommand_pDraw2DDeregistrationCommand
 
RegistrationState _currentRegistrationState2D
 

Static Private Attributes

static const std::string DEBUG_TITLE_MESSAGE = "Drawable_DEBUG: "
 

Friends

class DrawableAttorney
 

Member Function Documentation

◆ deregister2DFromScene()

void Drawable::deregister2DFromScene ( )
private

Deregisters Draw2D from current scene.

◆ deregisterFromScene()

void Drawable::deregisterFromScene ( )
private

Deregisters from the current scene.

DELAYED called with a command. NOT called by the user.

◆ register2DToScene()

void Drawable::register2DToScene ( )
private

Registers Draw2D to current scene.

DELAYED called with a command. NOT called by the user.

◆ registerToScene()

void Drawable::registerToScene ( )
private

Registers to the current scene.

DELAYED called with a command. NOT called by the user.


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