TazGraph Project v0.1.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Rectangle_w_Color Class Reference
Inheritance diagram for Rectangle_w_Color:
Inheritance graph
[legend]
Collaboration diagram for Rectangle_w_Color:
Collaboration graph
[legend]

Public Member Functions

void init () override
 
void update (float deltaTime) override
 
void draw (size_t v_index, PlaneColorRenderer &batch, TazGraphEngine::Window &window)
 
void setColor (Color clr)
 
void SetFlashAnimation (int idX, int idY, size_t fr, float sp, const Animation::animType type, const std::vector< float > &flashTimes, Color flashC, int reps=0)
 
void setFlashFrame ()
 
std::string GetComponentName () override
 
void showGUI () override
 
- Public Member Functions inherited from BaseComponent
virtual void draw (size_t e_index, PlaneModelRenderer &batch, TazGraphEngine::Window &window)
 
virtual void draw (size_t e_index, LineRenderer &batch, TazGraphEngine::Window &window)
 
virtual void draw (size_t e_index, LightRenderer &batch, TazGraphEngine::Window &window)
 

Public Attributes

Color default_color = { 255, 255, 255, 255 }
 
Color color = { 255, 255, 255, 255 }
 
TransformComponenttransform = nullptr
 
FlashAnimation flash_animation
 
- Public Attributes inherited from Component
Entityentity = nullptr
 
- Public Attributes inherited from BaseComponent
ComponentID id = 0u
 

Member Function Documentation

◆ draw()

void Rectangle_w_Color::draw ( size_t  v_index,
PlaneColorRenderer batch,
TazGraphEngine::Window window 
)
inlinevirtual

Reimplemented from BaseComponent.

◆ GetComponentName()

std::string Rectangle_w_Color::GetComponentName ( )
inlineoverridevirtual

Reimplemented from BaseComponent.

◆ init()

void Rectangle_w_Color::init ( )
inlineoverridevirtual

Reimplemented from BaseComponent.

◆ showGUI()

void Rectangle_w_Color::showGUI ( )
inlineoverridevirtual

Reimplemented from BaseComponent.

◆ update()

void Rectangle_w_Color::update ( float  deltaTime)
inlineoverridevirtual

Reimplemented from BaseComponent.


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