Cafu Engine
HL2mdl::StudioBodyPartT Struct Reference

This class describes a body part. More...

#include "Loader_mdl_hl2_mdl.hpp"

Public Member Functions

const char * GetName () const
 
StudioModelTGetModels () const
 
std::ostream & print (std::ostream &os, const char *indent) const
 

Public Attributes

uint32_t NameOffset
 
uint32_t NumModels
 
uint32_t Base
 For the i-th body ("body variant"), use from this body part the (i / Base) % NumModels-th model. More...
 
uint32_t ModelsOffset
 

Detailed Description

This class describes a body part.

A body part contains one or several models that are mutually exclusive, e.g. "empty holster", "holster with gun", "walkie-talkie", "empty/nothing". Bodies ("body variants") can be constructed from all such possible combinations. The related hierarchy is:

body variant    // a result of the combinations below
  body part     // all needed
    model       // mutually exclusive
      meshes    // all needed

Member Data Documentation

uint32_t HL2mdl::StudioBodyPartT::Base

For the i-th body ("body variant"), use from this body part the (i / Base) % NumModels-th model.


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