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

Public Member Functions

 ModelEcsComponent (tenno::shared_ptr< Model > m, bool transparent=false)
 
 ModelEcsComponent (Model &&m, bool transparent=false)
 
 ModelEcsComponent (Model::Builder &m, bool transparent=false)
 
void draw (const glm::mat4 &world_matrix)
 

Data Fields

tenno::shared_ptr< Modelmodel = nullptr
 
bool transparent = false
 

Detailed Description

Definition at line 19 of file model_ecs_component.hpp.

Constructor & Destructor Documentation

◆ ModelEcsComponent() [1/3]

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

Definition at line 27 of file model_ecs_component.hpp.

◆ ModelEcsComponent() [2/3]

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

Definition at line 29 of file model_ecs_component.hpp.

◆ ModelEcsComponent() [3/3]

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

Definition at line 34 of file model_ecs_component.hpp.

Member Function Documentation

◆ draw()

void brenta::ModelEcsComponent::draw ( const glm::mat4 &  world_matrix)
inline

Definition at line 40 of file model_ecs_component.hpp.

Field Documentation

◆ model

tenno::shared_ptr<Model> brenta::ModelEcsComponent::model = nullptr

Definition at line 23 of file model_ecs_component.hpp.

◆ transparent

bool brenta::ModelEcsComponent::transparent = false

Definition at line 24 of file model_ecs_component.hpp.


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