Chira Engine
A customizable MIT-licensed game engine.
chira::MeshData Class Reference
Inheritance diagram for chira::MeshData:
Collaboration diagram for chira::MeshData:

Public Member Functions

void render (glm::mat4 model, MeshCullType cullType=MeshCullType::BACK)
 
SharedPointer< IMaterialgetMaterial () const
 
void setMaterial (SharedPointer< IMaterial > newMaterial)
 
MeshDepthFunction getDepthFunction () const
 
void setDepthFunction (MeshDepthFunction function)
 
std::vector< byte > getMeshData (const std::string &meshLoader) const
 
void appendMeshData (const std::string &loader, const std::string &identifier)
 

Protected Member Functions

void setupForRendering ()
 Establishes the vertex buffers and copies the current mesh data into them.
 
void updateMeshData ()
 Updates the vertex buffers with the current mesh data.
 
void clearMeshData ()
 Does not call updateMeshData().
 

Protected Attributes

bool initialized = false
 
Renderer::MeshHandle handle {}
 
MeshDrawMode drawMode = MeshDrawMode::STATIC
 
MeshDepthFunction depthFunction = MeshDepthFunction::LEQUAL
 
SharedPointer< IMaterialmaterial
 
std::vector< Vertexvertices
 
std::vector< Index > indices
 

Detailed Description

Definition at line 11 of file MeshData.h.


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