RavEngine
Loading...
Searching...
No Matches
RavEngine::StaticMesh Class Reference
Inheritance diagram for RavEngine::StaticMesh:
[legend]
Collaboration diagram for RavEngine::StaticMesh:
[legend]

Public Member Functions

 StaticMesh (Entity owner, Ref< MeshCollectionStatic > m, decltype(material) mat)
 
 MOVE_NO_COPY (StaticMesh)
 
auto GetMesh () const
 
void SetMaterial (decltype(material) mat)
 
auto GetMaterial () const
 
void SetEnabled (bool)
 
- Public Member Functions inherited from RavEngine::ComponentWithOwner
 ComponentWithOwner (const decltype(owner) o)
 
Entity GetOwner () const
 
- Public Member Functions inherited from Disableable
decltype(Enabled) GetEnabled () const
 
void SetEnabled (decltype(Enabled) in)
 

Additional Inherited Members

- Protected Attributes inherited from RavEngine::ComponentWithOwner
Entity owner
 

Member Function Documentation

◆ GetMaterial()

auto RavEngine::StaticMesh::GetMaterial ( ) const
inline
Returns
the currently assigned material

◆ SetMaterial()

void RavEngine::StaticMesh::SetMaterial ( decltype(material)  mat)
inline

Assign a material to this staticmesh

Parameters
matthe material instance to assign

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