Cafu Engine
HL2mdl::StudioHeaderT Class Reference

This is the header of an MDL model file. More...

#include "Loader_mdl_hl2_mdl.hpp"

Public Member Functions

const StudioBoneTGetBones () const
 
const StudioAnimDescTGetLocalAnimDescs () const
 
const StudioSequDescTGetLocalSequDescs () const
 
const StudioAnimDescTGetAnimDesc (uint32_t i) const
 
const StudioTextureTGetTextures () const
 
const char * GetTexturePath (uint32_t i) const
 
const uint16_t * GetSkinRefs () const
 
const StudioBodyPartTGetBodyParts () const
 

Public Attributes

uint32_t ID
 Must be FILE_ID_IDST. More...
 
uint32_t Version
 Must be FILE_VERSION. More...
 
uint32_t Checksum
 Must match the checksum in VertexHeaderT. More...
 
char Name [64]
 The (relative) file name of this model. More...
 
uint32_t FileSize
 The size in bytes of the MDL file. More...
 
Vector3fT EyePos
 Ideal eye position. More...
 
Vector3fT IllumPos
 Illumination center. More...
 
BoundingBox3fT HullBB
 The ideal movement hull size. More...
 
BoundingBox3fT ViewBB
 The bounding box for visual clipping, possibly empty (0, 0, 0) (0, 0, 0). More...
 
uint32_t Flags
 
uint32_t NumBones
 The number of StudioBoneT instances. More...
 
uint32_t BonesOffset
 The byte offset to the first bone, relative to "this". More...
 
uint32_t NumBoneControllers
 The number of StudioBoneControllerT instances. More...
 
uint32_t BoneControllersOffset
 The byte offset to the first bone controller, relative to "this". More...
 
uint32_t NumHitboxSets
 
uint32_t HitboxSetsOffset
 
uint32_t NumLocalAnimDescs
 Animation/pose descriptions stored locally (in this MDL file). More...
 
uint32_t LocalAnimDescsOffset
 
uint32_t NumLocalSequDescs
 Sequence descriptions stored locally (in this MDL file). More...
 
uint32_t LocalSequDescsOffset
 
uint32_t ActivityListVersion
 
uint32_t EventsIndexed
 
uint32_t NumTextures
 The names of all materials (VMT files) used in this model. The VMT scripts in turn point to the texture images (VTF). More...
 
uint32_t TexturesOffset
 
uint32_t NumTexturePaths
 The search paths to be used for the VMT material script files. More...
 
uint32_t TexturePathsOffset
 
uint32_t NumSkinRefs
 
uint32_t NumSkinFamilies
 
uint32_t SkinsOffset
 
uint32_t NumBodyParts
 The number of StudioBodyPartT instances. More...
 
uint32_t BodyPartsOffset
 The byte offset to the first body part, relative to "this". More...
 
uint32_t NumLocalAttachments
 
uint32_t LocalAttachmentsOffset
 
uint32_t NumLocalNodes
 Nodes form a graph, transitioning from animation node to animation node. More...
 
uint32_t LocalNodeOffset
 
uint32_t LocalNodenameOffset
 
uint32_t NumFlexDesc
 
uint32_t FlexDescOffset
 
uint32_t NumFlexControllers
 
uint32_t FlexControllerOffset
 
uint32_t NumFlexRules
 
uint32_t FlexRuleOffset
 
uint32_t NumIKChains
 
uint32_t IKChainOffset
 
uint32_t NumMouths
 
uint32_t MouthOffset
 
uint32_t NumLocalPoseParameters
 
uint32_t LocalPoseParamOffset
 
uint32_t SurfacePropOffset
 
uint32_t KeyValueOffset
 
uint32_t KeyValueSize
 
uint32_t NumLocalIKAutoPlayLocks
 
uint32_t LocalIKAutoPlayLockOffset
 
float Mass
 
uint32_t Contents
 
uint32_t NumIncludeModels
 These represent external models with additional resources, e.g. animations. More...
 
uint32_t IncludeModelOffset
 

Static Public Attributes

static const uint32_t FILE_ID_IDST = 0x54534449
 The ID of a MDL studio model file. More...
 
static const uint32_t FILE_VERSION = 48
 The currently supported file format version. More...
 

Detailed Description

This is the header of an MDL model file.

Member Data Documentation

uint32_t HL2mdl::StudioHeaderT::BodyPartsOffset

The byte offset to the first body part, relative to "this".

uint32_t HL2mdl::StudioHeaderT::BoneControllersOffset

The byte offset to the first bone controller, relative to "this".

uint32_t HL2mdl::StudioHeaderT::BonesOffset

The byte offset to the first bone, relative to "this".

uint32_t HL2mdl::StudioHeaderT::Checksum

Must match the checksum in VertexHeaderT.

Vector3fT HL2mdl::StudioHeaderT::EyePos

Ideal eye position.

const uint32_t StudioHeaderT::FILE_ID_IDST = 0x54534449
static

The ID of a MDL studio model file.

const uint32_t StudioHeaderT::FILE_VERSION = 48
static

The currently supported file format version.

uint32_t HL2mdl::StudioHeaderT::FileSize

The size in bytes of the MDL file.

BoundingBox3fT HL2mdl::StudioHeaderT::HullBB

The ideal movement hull size.

uint32_t HL2mdl::StudioHeaderT::ID

Must be FILE_ID_IDST.

Vector3fT HL2mdl::StudioHeaderT::IllumPos

Illumination center.

char HL2mdl::StudioHeaderT::Name[64]

The (relative) file name of this model.

uint32_t HL2mdl::StudioHeaderT::NumBodyParts

The number of StudioBodyPartT instances.

uint32_t HL2mdl::StudioHeaderT::NumBoneControllers

The number of StudioBoneControllerT instances.

uint32_t HL2mdl::StudioHeaderT::NumBones

The number of StudioBoneT instances.

uint32_t HL2mdl::StudioHeaderT::NumIncludeModels

These represent external models with additional resources, e.g. animations.

uint32_t HL2mdl::StudioHeaderT::NumLocalAnimDescs

Animation/pose descriptions stored locally (in this MDL file).

uint32_t HL2mdl::StudioHeaderT::NumLocalNodes

Nodes form a graph, transitioning from animation node to animation node.

uint32_t HL2mdl::StudioHeaderT::NumLocalSequDescs

Sequence descriptions stored locally (in this MDL file).

uint32_t HL2mdl::StudioHeaderT::NumTexturePaths

The search paths to be used for the VMT material script files.

uint32_t HL2mdl::StudioHeaderT::NumTextures

The names of all materials (VMT files) used in this model. The VMT scripts in turn point to the texture images (VTF).

uint32_t HL2mdl::StudioHeaderT::Version

Must be FILE_VERSION.

BoundingBox3fT HL2mdl::StudioHeaderT::ViewBB

The bounding box for visual clipping, possibly empty (0, 0, 0) (0, 0, 0).


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