Cafu Engine
HL2mdl::StudioModelT Class Reference

This class describes a model of a body part. More...

#include "Loader_mdl_hl2_mdl.hpp"

Public Member Functions

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

Public Attributes

char Name [64]
 
uint32_t Type
 
float BoundingRadius
 
uint32_t NumMeshes
 LOD is implemented at mesh level, not at model level. More...
 
uint32_t MeshesOffset
 
uint32_t NumVertices
 The number of unique vertices (along with normals, tangents and texcoords) in this mesh. More...
 
uint32_t VertOffset
 The byte-offset into the VVD file to the first vertex. See GetVertices() for details. More...
 
uint32_t TangentsOffset
 As VertOffset, but for tangents. More...
 
uint32_t NumAttachments
 
uint32_t AttachmentsOffset
 
uint32_t NumEyeballs
 
uint32_t EyeballsOffset
 
const StudioVertexTm_Vertices
 = VertexHeader->GetVertices(); More...
 
const Vector4Dm_Tangents
 = VertexHeader->GetTangents(); More...
 
uint32_t Unused [8]
 Pointers are 32 bits wide. More...
 

Detailed Description

This class describes a model of a body part.

Member Data Documentation

const Vector4D* HL2mdl::StudioModelT::m_Tangents

= VertexHeader->GetTangents();

const StudioVertexT* HL2mdl::StudioModelT::m_Vertices

= VertexHeader->GetVertices();

uint32_t HL2mdl::StudioModelT::NumMeshes

LOD is implemented at mesh level, not at model level.

uint32_t HL2mdl::StudioModelT::NumVertices

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

uint32_t HL2mdl::StudioModelT::TangentsOffset

As VertOffset, but for tangents.

uint32_t HL2mdl::StudioModelT::Unused[8]

Pointers are 32 bits wide.

uint32_t HL2mdl::StudioModelT::VertOffset

The byte-offset into the VVD file to the first vertex. See GetVertices() for details.


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