SourcePP
Several modern C++20 libraries for sanely parsing Valve's formats.
Loading...
Searching...
No Matches
mdlpp::VTX::VTX Struct Reference

#include <VTX.h>

Collaboration diagram for mdlpp::VTX::VTX:

Public Types

enum class  HasTopologyIndices { AUTOMATIC , NO , YES }

Public Member Functions

bool open (const std::byte *data, std::size_t size, const MDL::MDL &mdl, HasTopologyIndices hasTopologyIndices=HasTopologyIndices::AUTOMATIC)

Public Attributes

int32_t version
int32_t vertexCacheSize
uint16_t maxBonesPerStrip
uint16_t maxBonesPerTriangle
int32_t maxBonesPerVertex
int32_t numLODs
std::array< std::vector< MaterialReplacement >, MAX_LOD_COUNTmaterialReplacementLists
std::vector< BodyPartbodyParts

Detailed Description

Definition at line 120 of file VTX.h.

Member Enumeration Documentation

◆ HasTopologyIndices

Enumerator
AUTOMATIC 
NO 
YES 

Definition at line 121 of file VTX.h.

Member Function Documentation

◆ open()

bool VTX::open ( const std::byte * data,
std::size_t size,
const MDL::MDL & mdl,
HasTopologyIndices hasTopologyIndices = HasTopologyIndices::AUTOMATIC )
nodiscard

Definition at line 12 of file VTX.cpp.

Member Data Documentation

◆ bodyParts

std::vector<BodyPart> mdlpp::VTX::VTX::bodyParts

Definition at line 142 of file VTX.h.

◆ materialReplacementLists

std::array<std::vector<MaterialReplacement>, MAX_LOD_COUNT> mdlpp::VTX::VTX::materialReplacementLists

Definition at line 138 of file VTX.h.

◆ maxBonesPerStrip

uint16_t mdlpp::VTX::VTX::maxBonesPerStrip

Definition at line 131 of file VTX.h.

◆ maxBonesPerTriangle

uint16_t mdlpp::VTX::VTX::maxBonesPerTriangle

Definition at line 132 of file VTX.h.

◆ maxBonesPerVertex

int32_t mdlpp::VTX::VTX::maxBonesPerVertex

Definition at line 133 of file VTX.h.

◆ numLODs

int32_t mdlpp::VTX::VTX::numLODs

Definition at line 135 of file VTX.h.

◆ version

int32_t mdlpp::VTX::VTX::version

Definition at line 129 of file VTX.h.

◆ vertexCacheSize

int32_t mdlpp::VTX::VTX::vertexCacheSize

Definition at line 130 of file VTX.h.


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