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

#include <mdlpp.h>

Collaboration diagram for mdlpp::StudioModel:

Public Member Functions

bool open (const std::byte *mdlData, std::size_t mdlSize, const std::byte *vtxData, std::size_t vtxSize, const std::byte *vvdData, std::size_t vvdSize)
 
bool open (const unsigned char *mdlData, std::size_t mdlSize, const unsigned char *vtxData, std::size_t vtxSize, const unsigned char *vvdData, std::size_t vvdSize)
 
bool open (const std::vector< std::byte > &mdlData, const std::vector< std::byte > &vtxData, const std::vector< std::byte > &vvdData)
 
bool open (const std::vector< unsigned char > &mdlData, const std::vector< unsigned char > &vtxData, const std::vector< unsigned char > &vvdData)
 
 operator bool () const
 
BakedModel processModelData (int currentLOD=ROOT_LOD) const
 

Public Attributes

MDL::MDL mdl
 
VTX::VTX vtx
 
VVD::VVD vvd
 

Detailed Description

Definition at line 29 of file mdlpp.h.

Member Function Documentation

◆ open() [1/4]

bool StudioModel::open ( const std::byte *  mdlData,
std::size_t  mdlSize,
const std::byte *  vtxData,
std::size_t  vtxSize,
const std::byte *  vvdData,
std::size_t  vvdSize 
)

Definition at line 10 of file mdlpp.cpp.

◆ open() [2/4]

bool StudioModel::open ( const std::vector< std::byte > &  mdlData,
const std::vector< std::byte > &  vtxData,
const std::vector< std::byte > &  vvdData 
)

Definition at line 33 of file mdlpp.cpp.

◆ open() [3/4]

bool StudioModel::open ( const std::vector< unsigned char > &  mdlData,
const std::vector< unsigned char > &  vtxData,
const std::vector< unsigned char > &  vvdData 
)

Definition at line 41 of file mdlpp.cpp.

◆ open() [4/4]

bool StudioModel::open ( const unsigned char *  mdlData,
std::size_t  mdlSize,
const unsigned char *  vtxData,
std::size_t  vtxSize,
const unsigned char *  vvdData,
std::size_t  vvdSize 
)

Definition at line 25 of file mdlpp.cpp.

◆ operator bool()

StudioModel::operator bool ( ) const
explicit

Definition at line 49 of file mdlpp.cpp.

◆ processModelData()

BakedModel StudioModel::processModelData ( int  currentLOD = ROOT_LOD) const

Definition at line 53 of file mdlpp.cpp.

Member Data Documentation

◆ mdl

MDL::MDL mdlpp::StudioModel::mdl

Definition at line 50 of file mdlpp.h.

◆ vtx

VTX::VTX mdlpp::StudioModel::vtx

Definition at line 51 of file mdlpp.h.

◆ vvd

VVD::VVD mdlpp::StudioModel::vvd

Definition at line 52 of file mdlpp.h.


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