Ketchup Engine
Loading...
Searching...
No Matches
Drawable Class Reference

#include <Drawable.h>

Inheritance diagram for Drawable:
Inheritance graph
Collaboration diagram for Drawable:
Collaboration graph

Public Member Functions

 Drawable ()
 
 Drawable (const Drawable &)=delete
 
Drawableoperator= (const Drawable &)=delete
 
virtual ~Drawable ()
 
virtual void Draw ()
 Draws this Drawable's 3D GraphicsObjects. User should override this method as necessary.
 
virtual void Draw2D ()
 Draws this Drawable's 2D KSprites. User should override this method as necessary.
 
void SubmitRegistration ()
 Submit draw registration to the currently active Scene.
 
void SubmitDeregistration ()
 Submit draw deregistration from the currently active Scene.
 

Private Member Functions

DrawableManager::StorageListRef GetDeregRef ()
 
void SetDeregRef (DrawableManager::StorageListRef ref)
 
void RegisterToScene ()
 
void DeregisterFromScene ()
 

Private Attributes

RegistrationState m_drRegState
 
DrawableManager::StorageListRef m_deregRef
 
DrawRegistrationCommandp_regCmd
 
DrawDeregistrationCommandp_deregCmd
 

Friends

class DrawableAttorney
 

Constructor & Destructor Documentation

◆ Drawable() [1/2]

Drawable::Drawable ( )

◆ Drawable() [2/2]

Drawable::Drawable ( const Drawable )
delete

◆ ~Drawable()

Drawable::~Drawable ( )
virtual

Member Function Documentation

◆ DeregisterFromScene()

void Drawable::DeregisterFromScene ( )
private

◆ Draw()

virtual void Drawable::Draw ( )
inlinevirtual

Draws this Drawable's 3D GraphicsObjects. User should override this method as necessary.

Haru, 3/8/2023.

◆ Draw2D()

virtual void Drawable::Draw2D ( )
inlinevirtual

Draws this Drawable's 2D KSprites. User should override this method as necessary.

Haru, 3/8/2023.

Reimplemented in ScreenLog, and SongPlayer.

◆ GetDeregRef()

DrawableManager::StorageListRef Drawable::GetDeregRef ( )
private

◆ operator=()

Drawable & Drawable::operator= ( const Drawable )
delete

◆ RegisterToScene()

void Drawable::RegisterToScene ( )
private

◆ SetDeregRef()

void Drawable::SetDeregRef ( DrawableManager::StorageListRef  ref)
private

◆ SubmitDeregistration()

void Drawable::SubmitDeregistration ( )

Submit draw deregistration from the currently active Scene.

Haru, 3/8/2023.

◆ SubmitRegistration()

void Drawable::SubmitRegistration ( )

Submit draw registration to the currently active Scene.

Haru, 3/8/2023.

Friends And Related Function Documentation

◆ DrawableAttorney

friend class DrawableAttorney
friend

Member Data Documentation

◆ m_deregRef

DrawableManager::StorageListRef Drawable::m_deregRef
private

◆ m_drRegState

RegistrationState Drawable::m_drRegState
private

◆ p_deregCmd

DrawDeregistrationCommand* Drawable::p_deregCmd
private

◆ p_regCmd

DrawRegistrationCommand* Drawable::p_regCmd
private

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