TazGraph Project v0.1.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
SphereComponent Class Reference
Inheritance diagram for SphereComponent:
Inheritance graph
[legend]
Collaboration diagram for SphereComponent:
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 draw (size_t v_index, LightRenderer &batch, TazGraphEngine::Window &window)
 
std::string GetComponentName () 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 showGUI ()
 

Public Attributes

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

Member Function Documentation

◆ draw() [1/2]

void SphereComponent::draw ( size_t  v_index,
LightRenderer batch,
TazGraphEngine::Window window 
)
inlinevirtual

Reimplemented from BaseComponent.

◆ draw() [2/2]

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

Reimplemented from BaseComponent.

◆ GetComponentName()

std::string SphereComponent::GetComponentName ( )
inlineoverridevirtual

Reimplemented from BaseComponent.

◆ init()

void SphereComponent::init ( )
inlineoverridevirtual

Reimplemented from BaseComponent.

◆ update()

void SphereComponent::update ( float  deltaTime)
inlineoverridevirtual

Reimplemented from BaseComponent.


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