MxEngine
Public Member Functions | Public Attributes | List of all members
MxEngine::MeshInfo Struct Reference

#include <ObjectLoader.h>

Public Member Functions

size_t GetVertexCount () const
 

Public Attributes

MxString name
 
MxVector< Vertexvertecies
 
MxVector< uint32_t > indicies
 
MaterialInfomaterial = nullptr
 
bool useTexture = false
 
bool useNormal = false
 

Detailed Description

mesh info is a temporary class which stores object model data. Later it is used to construct SubMesh class object

Member Function Documentation

§ GetVertexCount()

size_t MxEngine::MeshInfo::GetVertexCount ( ) const
inline

returns count of verteces in buffer

Member Data Documentation

§ material

MaterialInfo* MxEngine::MeshInfo::material = nullptr

mesh material pointer (to external table passed with MeshInfo inside ObjectInfo)

§ name

MxString MxEngine::MeshInfo::name

name of mesh

§ useNormal

bool MxEngine::MeshInfo::useNormal = false

has the mesh normal data (and tangent space) or not

§ useTexture

bool MxEngine::MeshInfo::useTexture = false

has the mesh texture data (uv-coords) or not

§ vertecies

MxVector<Vertex> MxEngine::MeshInfo::vertecies

buffer containing all vertex data


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