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

#include <MDL.h>

Collaboration diagram for mdlpp::MDL::MDL:

Public Types

enum  Flags : int32_t {
  FLAG_NONE = 0 , FLAG_AUTOGENERATED_HITBOX = 1 << 0 , FLAG_FORCE_OPAQUE = 1 << 2 , FLAG_TRANSLUCENT_TWO_PASS = 1 << 3 ,
  FLAG_STATIC_PROP = 1 << 4 , FLAG_HAS_SHADOW_LOD = 1 << 6 , FLAG_USE_SHADOW_LOD_MATERIALS = 1 << 8 , FLAG_OBSOLETE = 1 << 9 ,
  FLAG_NO_FORCED_FADE = 1 << 11 , FLAG_FORCE_PHONEME_CROSSFADE = 1 << 12 , FLAG_CONSTANT_DIRECTIONAL_LIGHT_DOT = 1 << 13 , FLAG_FLEXES_CONVERTED = 1 << 14 ,
  FLAG_BUILT_IN_PREVIEW_MODE = 1 << 15 , FLAG_DO_NOT_CAST_SHADOWS = 1 << 17 , FLAG_CAST_TEXTURE_SHADOWS = 1 << 18 , FLAG_SUBDIVISION_SURFACE = 1 << 19 ,
  FLAG_VERT_ANIM_FIXED_POINT_SCALE = 1 << 21 , FLAG_EXTRA_VERTEX_DATA = 1 << 26
}
 

Public Member Functions

bool open (const std::byte *data, std::size_t size)
 

Public Attributes

int32_t version
 
int32_t checksum
 
std::string name
 
sourcepp::math::Vec3f eyePosition
 
sourcepp::math::Vec3f illuminationPosition
 
sourcepp::math::Vec3f hullMin
 
sourcepp::math::Vec3f hullMax
 
sourcepp::math::Vec3f viewBBoxMin
 
sourcepp::math::Vec3f viewBBoxMax
 
Flags flags
 
std::vector< Bonebones
 
std::vector< BoneControllerboneControllers
 
std::vector< HitboxSethitboxSets
 
int32_t activityListVersion
 
int32_t eventsIndexed
 
std::vector< Materialmaterials
 
std::vector< std::string > materialDirectories
 
std::vector< std::vector< int16_t > > skins
 
std::vector< BodyPartbodyParts
 

Detailed Description

Definition at line 261 of file MDL.h.

Member Enumeration Documentation

◆ Flags

enum mdlpp::MDL::MDL::Flags : int32_t
Enumerator
FLAG_NONE 
FLAG_AUTOGENERATED_HITBOX 
FLAG_FORCE_OPAQUE 
FLAG_TRANSLUCENT_TWO_PASS 
FLAG_STATIC_PROP 
FLAG_HAS_SHADOW_LOD 
FLAG_USE_SHADOW_LOD_MATERIALS 
FLAG_OBSOLETE 
FLAG_NO_FORCED_FADE 
FLAG_FORCE_PHONEME_CROSSFADE 
FLAG_CONSTANT_DIRECTIONAL_LIGHT_DOT 
FLAG_FLEXES_CONVERTED 
FLAG_BUILT_IN_PREVIEW_MODE 
FLAG_DO_NOT_CAST_SHADOWS 
FLAG_CAST_TEXTURE_SHADOWS 
FLAG_SUBDIVISION_SURFACE 
FLAG_VERT_ANIM_FIXED_POINT_SCALE 
FLAG_EXTRA_VERTEX_DATA 

Definition at line 264 of file MDL.h.

Member Function Documentation

◆ open()

bool MDL::open ( const std::byte *  data,
std::size_t  size 
)

Definition at line 11 of file MDL.cpp.

Member Data Documentation

◆ activityListVersion

int32_t mdlpp::MDL::MDL::activityListVersion

Definition at line 320 of file MDL.h.

◆ bodyParts

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

Definition at line 339 of file MDL.h.

◆ boneControllers

std::vector<BoneController> mdlpp::MDL::MDL::boneControllers

Definition at line 308 of file MDL.h.

◆ bones

std::vector<Bone> mdlpp::MDL::MDL::bones

Definition at line 304 of file MDL.h.

◆ checksum

int32_t mdlpp::MDL::MDL::checksum

Definition at line 287 of file MDL.h.

◆ eventsIndexed

int32_t mdlpp::MDL::MDL::eventsIndexed

Definition at line 321 of file MDL.h.

◆ eyePosition

sourcepp::math::Vec3f mdlpp::MDL::MDL::eyePosition

Definition at line 293 of file MDL.h.

◆ flags

Flags mdlpp::MDL::MDL::flags

Definition at line 300 of file MDL.h.

◆ hitboxSets

std::vector<HitboxSet> mdlpp::MDL::MDL::hitboxSets

Definition at line 312 of file MDL.h.

◆ hullMax

sourcepp::math::Vec3f mdlpp::MDL::MDL::hullMax

Definition at line 296 of file MDL.h.

◆ hullMin

sourcepp::math::Vec3f mdlpp::MDL::MDL::hullMin

Definition at line 295 of file MDL.h.

◆ illuminationPosition

sourcepp::math::Vec3f mdlpp::MDL::MDL::illuminationPosition

Definition at line 294 of file MDL.h.

◆ materialDirectories

std::vector<std::string> mdlpp::MDL::MDL::materialDirectories

Definition at line 329 of file MDL.h.

◆ materials

std::vector<Material> mdlpp::MDL::MDL::materials

Definition at line 325 of file MDL.h.

◆ name

std::string mdlpp::MDL::MDL::name

Definition at line 290 of file MDL.h.

◆ skins

std::vector<std::vector<int16_t> > mdlpp::MDL::MDL::skins

Definition at line 335 of file MDL.h.

◆ version

int32_t mdlpp::MDL::MDL::version

Definition at line 286 of file MDL.h.

◆ viewBBoxMax

sourcepp::math::Vec3f mdlpp::MDL::MDL::viewBBoxMax

Definition at line 298 of file MDL.h.

◆ viewBBoxMin

sourcepp::math::Vec3f mdlpp::MDL::MDL::viewBBoxMin

Definition at line 297 of file MDL.h.


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