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

Public Member Functions

 PortComponent (bool m_isVertical)
 
void init () override
 
void update (float deltaTime) override
 
void draw (size_t v_index, PlaneColorRenderer &batch, TazGraphEngine::Window &window)
 
std::string GetComponentName () override
 
void showGUI () override
 
glm::vec3 getSlotPosition (size_t slotIndex) const
 
int getSlotIndex (EmptyEntity *slot) const
 
- 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 color = { 255, 255, 255, 255 }
 
bool isVertical = false
 
std::vector< EmptyEntity * > portSlots
 
float slotSpacing = 0.0f
 
TransformComponenttransform = nullptr
 
- Public Attributes inherited from Component
Entityentity = nullptr
 
- Public Attributes inherited from BaseComponent
ComponentID id = 0u
 

Member Function Documentation

◆ draw()

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

Reimplemented from BaseComponent.

◆ GetComponentName()

std::string PortComponent::GetComponentName ( )
inlineoverridevirtual

Reimplemented from BaseComponent.

◆ init()

void PortComponent::init ( )
inlineoverridevirtual

Reimplemented from BaseComponent.

◆ showGUI()

void PortComponent::showGUI ( )
inlineoverridevirtual

Reimplemented from BaseComponent.

◆ update()

void PortComponent::update ( float  deltaTime)
inlineoverridevirtual

Reimplemented from BaseComponent.


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