MDLParser
Simple and modern library for parsing the Source engine model formats
Loading...
Searching...
No Matches
Public Attributes | List of all members
MdlParser::Mdl::Mesh Struct Reference

#include <mdl.hpp>

Public Attributes

int32_t material
 
int32_t vertexOffset
 
int32_t vertexCount
 

Detailed Description

A collection of primitives with a common set of vertices, indices and material.

Member Data Documentation

◆ material

int32_t MdlParser::Mdl::Mesh::material

Column of the skin lookup table to use for this mesh.

mdl.getSkinLookupTable()[skinFamily][mesh.material]

◆ vertexCount

int32_t MdlParser::Mdl::Mesh::vertexCount

Number of vertices and tangents in this mesh.

◆ vertexOffset

int32_t MdlParser::Mdl::Mesh::vertexOffset

Offset to be added to the parent Model's offsets into the VVD's vertex and tangent arrays.

Remarks
Unlike Model, each Mesh has only one offset for both vertices and tangents.

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