Cafu Engine
HL2mdl::StudioMeshT Struct Reference

This class describes a mesh of a model. More...

#include "Loader_mdl_hl2_mdl.hpp"

Public Member Functions

const StudioModelTGetModel () const
 
const StudioVertexTGetVertices () const
 
const Vector4DGetTangents () const
 
std::ostream & print (std::ostream &os, const char *indent) const
 

Public Attributes

uint32_t Material
 See LoaderHL2mdlT::Load(Skins, ...) for details! More...
 
int32_t ModelOffset
 Points back to the parent StudioModelT. Usually negative. More...
 
uint32_t NumVertices
 The number of unique vertices (along with normals, tangents and texcoords) in this mesh. More...
 
uint32_t VerticesOffset
 The first vertex of the mesh, relative to the first vertex of the model. More...
 
uint32_t NumFlexes
 Flexes are for animating vertices (unrelated to / independent from bones). More...
 
uint32_t FlexesOffset
 
uint32_t MaterialType
 
uint32_t MaterialParam
 
uint32_t MeshID
 A unique ID for this mesh. More...
 
Vector3fT Center
 
uint32_t Unused1
 
uint32_t NumLODVertices [HL2mdl_MAX_NUM_LODS]
 
uint32_t Unused2 [8]
 

Detailed Description

This class describes a mesh of a model.

Member Data Documentation

uint32_t HL2mdl::StudioMeshT::Material

See LoaderHL2mdlT::Load(Skins, ...) for details!

uint32_t HL2mdl::StudioMeshT::MeshID

A unique ID for this mesh.

int32_t HL2mdl::StudioMeshT::ModelOffset

Points back to the parent StudioModelT. Usually negative.

uint32_t HL2mdl::StudioMeshT::NumFlexes

Flexes are for animating vertices (unrelated to / independent from bones).

uint32_t HL2mdl::StudioMeshT::NumVertices

The number of unique vertices (along with normals, tangents and texcoords) in this mesh.

uint32_t HL2mdl::StudioMeshT::VerticesOffset

The first vertex of the mesh, relative to the first vertex of the model.


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