Brenta Engine 1.2
Loading...
Searching...
No Matches
brenta::ModelNodeComponent Class Reference
Inheritance diagram for brenta::ModelNodeComponent:
brenta::NodeComponent

Public Member Functions

 ModelNodeComponent (tenno::shared_ptr< Model > m, bool transparent=false)
 
 ModelNodeComponent (Model &&m, bool transparent=false)
 
 ModelNodeComponent (Model::Builder &m, bool transparent=false)
 
void update (float delta_time) override
 
void draw (const glm::mat4 &world_matrix) override
 

Data Fields

tenno::shared_ptr< Modelmodel
 
bool transparent = false
 
- Data Fields inherited from brenta::NodeComponent
tenno::weak_ptr< Nodeowner
 

Detailed Description

Definition at line 16 of file model_node_component.hpp.

Constructor & Destructor Documentation

◆ ModelNodeComponent() [1/3]

brenta::ModelNodeComponent::ModelNodeComponent ( tenno::shared_ptr< Model m,
bool  transparent = false 
)
inline

Definition at line 24 of file model_node_component.hpp.

◆ ModelNodeComponent() [2/3]

brenta::ModelNodeComponent::ModelNodeComponent ( Model &&  m,
bool  transparent = false 
)
inline

Definition at line 26 of file model_node_component.hpp.

◆ ModelNodeComponent() [3/3]

brenta::ModelNodeComponent::ModelNodeComponent ( Model::Builder m,
bool  transparent = false 
)
inline

Definition at line 31 of file model_node_component.hpp.

Member Function Documentation

◆ draw()

void ModelNodeComponent::draw ( const glm::mat4 &  world_matrix)
overridevirtual

Implements brenta::NodeComponent.

Definition at line 16 of file model_node_component.cpp.

◆ update()

void ModelNodeComponent::update ( float  delta_time)
overridevirtual

Implements brenta::NodeComponent.

Definition at line 11 of file model_node_component.cpp.

Field Documentation

◆ model

tenno::shared_ptr<Model> brenta::ModelNodeComponent::model

Definition at line 20 of file model_node_component.hpp.

◆ transparent

bool brenta::ModelNodeComponent::transparent = false

Definition at line 21 of file model_node_component.hpp.


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