Cafu Engine
HL2mdl::VertexHeaderT Class Reference

This is the header of a VVD vertex data file. More...

#include "Loader_mdl_hl2_vvd.hpp"

Public Member Functions

StudioVertexTGetVertices () const
 
Vector4DGetTangents () const
 
const FixupTGetFixups () const
 
void FixData ()
 
std::ostream & print (std::ostream &os, const char *indent) const
 

Public Attributes

uint32_t ID
 Must be FILE_ID_IDSV or FILE_ID_IDCV. More...
 
uint32_t Version
 Must be FILE_VERSION. More...
 
uint32_t Checksum
 Must match the checksum in StudioHeaderT. More...
 
uint32_t NumLODs
 The number of available detail levels. More...
 
uint32_t NumLODVertices [HL2mdl_MAX_NUM_LODS]
 The cumulated number of vertices for the given and all lower detail levels. More...
 
uint32_t NumFixups
 The number of FixupT instances. More...
 
uint32_t FixupsOffset
 The byte offset to the first fixup, relative to "this". More...
 
uint32_t VerticesOffset
 The byte offset to the first vertex, relative to "this". More...
 
uint32_t TangentsOffset
 The byte offset to the first tangent, relative to "this". More...
 

Static Public Attributes

static const uint32_t FILE_ID_IDSV = 0x56534449
 The ID of a VVD file with normal vertex data. More...
 
static const uint32_t FILE_ID_IDCV = 0x56434449
 The ID of a VVD file with compressed ("thin") vertex data. More...
 
static const uint32_t FILE_VERSION = 4
 The currently supported file format version. More...
 

Detailed Description

This is the header of a VVD vertex data file.

Member Data Documentation

uint32_t HL2mdl::VertexHeaderT::Checksum

Must match the checksum in StudioHeaderT.

const uint32_t VertexHeaderT::FILE_ID_IDCV = 0x56434449
static

The ID of a VVD file with compressed ("thin") vertex data.

const uint32_t VertexHeaderT::FILE_ID_IDSV = 0x56534449
static

The ID of a VVD file with normal vertex data.

const uint32_t VertexHeaderT::FILE_VERSION = 4
static

The currently supported file format version.

uint32_t HL2mdl::VertexHeaderT::FixupsOffset

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

uint32_t HL2mdl::VertexHeaderT::ID

Must be FILE_ID_IDSV or FILE_ID_IDCV.

uint32_t HL2mdl::VertexHeaderT::NumFixups

The number of FixupT instances.

uint32_t HL2mdl::VertexHeaderT::NumLODs

The number of available detail levels.

uint32_t HL2mdl::VertexHeaderT::NumLODVertices[HL2mdl_MAX_NUM_LODS]

The cumulated number of vertices for the given and all lower detail levels.

uint32_t HL2mdl::VertexHeaderT::TangentsOffset

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

uint32_t HL2mdl::VertexHeaderT::Version

Must be FILE_VERSION.

uint32_t HL2mdl::VertexHeaderT::VerticesOffset

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


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