Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
MeshModelClass Class Reference

#include <meshmdl.h>

Inherits MeshGeometryClass.

Public Member Functions

 MeshModelClass (void)
 
 MeshModelClass (const MeshModelClass &that)
 
 ~MeshModelClass (void)
 
MeshModelClassoperator= (const MeshModelClass &that)
 
void Reset (int polycount, int vertcount, int passcount)
 
void Register_For_Rendering ()
 
void Shadow_Render (SpecialRenderInfoClass &rinfo, const Matrix3D &tm, const HTreeClass *htree)
 
void Set_Pass_Count (int passes)
 
int Get_Pass_Count (void) const
 
const Vector2Get_UV_Array (int pass=0, int stage=0)
 
int Get_UV_Array_Count (void)
 
const Vector2Get_UV_Array_By_Index (int index)
 
unsigned * Get_DCG_Array (int pass)
 
unsigned * Get_DIG_Array (int pass)
 
VertexMaterialClass::ColorSourceType Get_DCG_Source (int pass)
 
VertexMaterialClass::ColorSourceType Get_DIG_Source (int pass)
 
unsigned * Get_Color_Array (int array_index, bool create=true)
 
void Set_Single_Material (VertexMaterialClass *vmat, int pass=0)
 
void Set_Single_Texture (TextureClass *tex, int pass=0, int stage=0)
 
void Set_Single_Shader (ShaderClass shader, int pass=0)
 
VertexMaterialClassGet_Single_Material (int pass=0) const
 
TextureClassGet_Single_Texture (int pass=0, int stage=0) const
 
ShaderClass Get_Single_Shader (int pass=0) const
 
VertexMaterialClassPeek_Single_Material (int pass=0) const
 
TextureClassPeek_Single_Texture (int pass=0, int stage=0) const
 
void Set_Material (int vidx, VertexMaterialClass *vmat, int pass=0)
 
void Set_Shader (int pidx, ShaderClass shader, int pass=0)
 
void Set_Texture (int pidx, TextureClass *tex, int pass=0, int stage=0)
 
bool Has_Material_Array (int pass) const
 
bool Has_Shader_Array (int pass) const
 
bool Has_Texture_Array (int pass, int stage) const
 
VertexMaterialClassGet_Material (int vidx, int pass=0) const
 
TextureClassGet_Texture (int pidx, int pass=0, int stage=0) const
 
ShaderClass Get_Shader (int pidx, int pass=0) const
 
VertexMaterialClassPeek_Material (int vidx, int pass=0) const
 
TextureClassPeek_Texture (int pidx, int pass=0, int stage=0) const
 
void Replace_Texture (TextureClass *texture, TextureClass *new_texture)
 
void Replace_VertexMaterial (VertexMaterialClass *vmat, VertexMaterialClass *new_vmat)
 
void Make_Geometry_Unique ()
 
void Make_UV_Array_Unique (int pass=0, int stage=0)
 
void Make_Color_Array_Unique (int array_index=0)
 
WW3DErrorType Load_W3D (ChunkLoadClass &cload)
 
void Create_Decal (DecalGeneratorClass *generator, MeshClass *parent)
 
void Delete_Decal (uint32 decal_id)
 
void Enable_Alternate_Material_Description (bool onoff)
 
bool Is_Alternate_Material_Description_Enabled (void)
 
DX8FVFCategoryContainerPeek_FVF_Category_Container ()
 
bool Needs_Vertex_Normals (void)
 
void Init_For_NPatch_Rendering ()
 
const GapFillerClassGet_Gap_Filler () const
 
bool Has_Polygon_Renderers (void)
 
TexBufferClassGet_Texture_Array (int pass, int stage, bool create=true)
 
MatBufferClassGet_Material_Array (int pass, bool create=true)
 
ShaderClassGet_Shader_Array (int pass, bool create=true)
 
- Public Member Functions inherited from MeshGeometryClass
 MeshGeometryClass (void)
 
 MeshGeometryClass (const MeshGeometryClass &that)
 
virtual ~MeshGeometryClass (void)
 
MeshGeometryClassoperator= (const MeshGeometryClass &that)
 
void Reset_Geometry (int polycount, int vertcount)
 
const char * Get_Name (void) const
 
void Set_Name (const char *newname)
 
const char * Get_User_Text (void)
 
void Set_User_Text (char *usertext)
 
void Set_Flag (FlagsType flag, bool onoff)
 
int Get_Flag (FlagsType flag)
 
void Set_Sort_Level (int level)
 
int Get_Sort_Level (void) const
 
int Get_Polygon_Count (void) const
 
int Get_Vertex_Count (void) const
 
const TriIndexGet_Polygon_Array (void)
 
Vector3Get_Vertex_Array (void)
 
const Vector3Get_Vertex_Normal_Array (void)
 
const Vector4Get_Plane_Array (bool create=true)
 
void Compute_Plane (int pidx, PlaneClass *set_plane) const
 
const uint32Get_Vertex_Shade_Index_Array (bool create=true)
 
const uint16Get_Vertex_Bone_Links (void)
 
uint8Get_Poly_Surface_Type_Array (void)
 
uint8 Get_Poly_Surface_Type (int poly_index) const
 
void Get_Bounding_Box (AABoxClass *set_box)
 
void Get_Bounding_Sphere (SphereClass *set_sphere)
 
bool Has_Cull_Tree (void)
 
void Generate_Rigid_APT (const Vector3 &view_dir, SimpleDynVecClass< uint32 > &apt)
 
void Generate_Rigid_APT (const OBBoxClass &local_box, SimpleDynVecClass< uint32 > &apt)
 
void Generate_Rigid_APT (const OBBoxClass &local_box, const Vector3 &view_dir, SimpleDynVecClass< uint32 > &apt)
 
void Generate_Skin_APT (const OBBoxClass &world_box, SimpleDynVecClass< uint32 > &apt, const Vector3 *world_vertex_locs)
 
bool Contains (const Vector3 &point)
 
bool Cast_Ray (RayCollisionTestClass &raytest)
 
bool Cast_AABox (AABoxCollisionTestClass &boxtest)
 
bool Cast_OBBox (OBBoxCollisionTestClass &boxtest)
 
bool Intersect_OBBox (OBBoxIntersectionTestClass &boxtest)
 
bool Cast_World_Space_AABox (AABoxCollisionTestClass &boxtest, const Matrix3D &transform)
 
void Scale (const Vector3 &sc)
 
- Public Member Functions inherited from W3DMPO
virtual ~W3DMPO ()
 
- Public Member Functions inherited from RefCountClass
 RefCountClass (void)
 
 RefCountClass (const RefCountClass &)
 
void Add_Ref (void) const
 
WWINLINE void Release_Ref (void) const
 
int Num_Refs (void) const
 
virtual void Delete_This (void)
 
- Public Member Functions inherited from MultiListObjectClass
 MultiListObjectClass (void)
 
virtual ~MultiListObjectClass (void)
 
MultiListNodeClassGet_List_Node () const
 
void Set_List_Node (MultiListNodeClass *node)
 

Protected Member Functions

void Set_HTree (const HTreeClass *htree)
 
int Register_Type ()
 
WW3DErrorType read_chunks (ChunkLoadClass &cload, MeshLoadContextClass *context)
 
WW3DErrorType read_texcoords (ChunkLoadClass &cload, MeshLoadContextClass *context)
 
WW3DErrorType read_materials (ChunkLoadClass &cload, MeshLoadContextClass *context)
 
WW3DErrorType read_v2_materials (ChunkLoadClass &cload, MeshLoadContextClass *context)
 
WW3DErrorType read_v3_materials (ChunkLoadClass &cload, MeshLoadContextClass *context)
 
WW3DErrorType read_per_tri_materials (ChunkLoadClass &cload, MeshLoadContextClass *context)
 
WW3DErrorType read_vertex_colors (ChunkLoadClass &cload, MeshLoadContextClass *context)
 
WW3DErrorType read_material_info (ChunkLoadClass &cload, MeshLoadContextClass *context)
 
WW3DErrorType read_shaders (ChunkLoadClass &cload, MeshLoadContextClass *context)
 
WW3DErrorType read_vertex_materials (ChunkLoadClass &cload, MeshLoadContextClass *context)
 
WW3DErrorType read_textures (ChunkLoadClass &cload, MeshLoadContextClass *context)
 
WW3DErrorType read_material_pass (ChunkLoadClass &cload, MeshLoadContextClass *context)
 
WW3DErrorType read_vertex_material_ids (ChunkLoadClass &cload, MeshLoadContextClass *context)
 
WW3DErrorType read_shader_ids (ChunkLoadClass &cload, MeshLoadContextClass *context)
 
WW3DErrorType read_scg (ChunkLoadClass &cload, MeshLoadContextClass *context)
 
WW3DErrorType read_dig (ChunkLoadClass &cload, MeshLoadContextClass *context)
 
WW3DErrorType read_dcg (ChunkLoadClass &cload, MeshLoadContextClass *context)
 
WW3DErrorType read_texture_stage (ChunkLoadClass &cload, MeshLoadContextClass *context)
 
WW3DErrorType read_texture_ids (ChunkLoadClass &cload, MeshLoadContextClass *context)
 
WW3DErrorType read_stage_texcoords (ChunkLoadClass &cload, MeshLoadContextClass *context)
 
WW3DErrorType read_per_face_texcoord_ids (ChunkLoadClass &cload, MeshLoadContextClass *context)
 
WW3DErrorType read_prelit_material (ChunkLoadClass &cload, MeshLoadContextClass *context)
 
void post_process (void)
 
void post_process_fog (void)
 
unsigned int get_sort_flags (int pass) const
 
unsigned int get_sort_flags (void) const
 
void compute_static_sort_levels (void)
 
void modify_for_overbright (void)
 
void install_materials (MeshLoadContextClass *loadinfo)
 
void clone_materials (const MeshModelClass &srcmesh)
 
void install_alternate_material_desc (MeshLoadContextClass *context)
 
- Protected Member Functions inherited from MeshGeometryClass
TriIndexget_polys (void)
 
Vector3get_vert_normals (void)
 
uint32get_shade_indices (bool create=true)
 
Vector4get_planes (bool create=true)
 
uint16get_bone_links (bool create=true)
 
int cast_semi_infinite_axis_aligned_ray (const Vector3 &start_point, int axis_dir, unsigned char &flags)
 
bool cast_aabox_identity (AABoxCollisionTestClass &boxtest, const Vector3 &trans)
 
bool cast_aabox_z90 (AABoxCollisionTestClass &boxtest, const Vector3 &trans)
 
bool cast_aabox_z180 (AABoxCollisionTestClass &boxtest, const Vector3 &trans)
 
bool cast_aabox_z270 (AABoxCollisionTestClass &boxtest, const Vector3 &trans)
 
bool intersect_obbox_brute_force (OBBoxIntersectionTestClass &localtest)
 
bool cast_ray_brute_force (RayCollisionTestClass &raytest)
 
bool cast_aabox_brute_force (AABoxCollisionTestClass &boxtest)
 
bool cast_obbox_brute_force (OBBoxCollisionTestClass &boxtest)
 
virtual void Compute_Plane_Equations (Vector4 *array)
 
virtual void Compute_Vertex_Normals (Vector3 *array)
 
virtual void Compute_Bounds (Vector3 *verts)
 
void Generate_Culling_Tree (void)
 
WW3DErrorType read_chunks (ChunkLoadClass &cload)
 
WW3DErrorType read_vertices (ChunkLoadClass &cload)
 
WW3DErrorType read_vertex_normals (ChunkLoadClass &cload)
 
WW3DErrorType read_triangles (ChunkLoadClass &cload)
 
WW3DErrorType read_user_text (ChunkLoadClass &cload)
 
WW3DErrorType read_vertex_influences (ChunkLoadClass &cload)
 
WW3DErrorType read_vertex_shade_indices (ChunkLoadClass &cload)
 
WW3DErrorType read_aabtree (ChunkLoadClass &cload)
 
void get_deformed_vertices (Vector3 *dst_vert, Vector3 *dst_norm, const HTreeClass *htree)
 
void get_deformed_vertices (Vector3 *dst_vert, const HTreeClass *htree)
 
void get_deformed_screenspace_vertices (Vector4 *dst_vert, const RenderInfoClass &rinfo, const Matrix3D &mesh_tm, const HTreeClass *htree)
 
- Protected Member Functions inherited from W3DMPO
virtual int glueEnforcer () const =0
 
- Protected Member Functions inherited from RefCountClass
virtual ~RefCountClass (void)
 

Protected Attributes

MeshMatDescClassDefMatDesc
 
MeshMatDescClassAlternateMatDesc
 
MeshMatDescClassCurMatDesc
 
MaterialInfoClassMatInfo
 
DX8PolygonRendererList PolygonRendererList
 
GapFillerClassGapFiller
 
bool HasBeenInUse
 
- Protected Attributes inherited from MeshGeometryClass
ShareBufferClass< char > * MeshName
 
ShareBufferClass< char > * UserText
 
int Flags
 
char SortLevel
 
uint32 W3dAttributes
 
int PolyCount
 
int VertexCount
 
ShareBufferClass< TriIndex > * Poly
 
ShareBufferClass< Vector3 > * Vertex
 
ShareBufferClass< Vector3 > * VertexNorm
 
ShareBufferClass< Vector4 > * PlaneEq
 
ShareBufferClass< uint32 > * VertexShadeIdx
 
ShareBufferClass< uint16 > * VertexBoneLink
 
ShareBufferClass< uint8 > * PolySurfaceType
 
Vector3 BoundBoxMin
 
Vector3 BoundBoxMax
 
Vector3 BoundSphereCenter
 
float BoundSphereRadius
 
AABTreeClassCullTree
 

Friends

class MeshClass
 
class MeshDeformSetClass
 
class MeshDeformClass
 
class MeshLoadContextClass
 
class DX8SkinFVFCategoryContainer
 
class DX8MeshRendererClass
 
class DX8PolygonRendererClass
 

Additional Inherited Members

- Public Types inherited from MeshGeometryClass
enum  FlagsType {
  DIRTY_BOUNDS = 0x00000001 , DIRTY_PLANES = 0x00000002 , DIRTY_VNORMALS = 0x00000004 , SORT = 0x00000010 ,
  DISABLE_BOUNDING_BOX = 0x00000020 , DISABLE_BOUNDING_SPHERE = 0x00000040 , DISABLE_PLANE_EQ = 0x00000080 , TWO_SIDED = 0x00000100 ,
  ALIGNED = 0x00000200 , SKIN = 0x00000400 , ORIENTED = 0x00000800 , CAST_SHADOW = 0x00001000 ,
  PRELIT_MASK = 0x0000E000 , PRELIT_VERTEX = 0x00002000 , PRELIT_LIGHTMAP_MULTI_PASS = 0x00004000 , PRELIT_LIGHTMAP_MULTI_TEXTURE = 0x00008000 ,
  ALLOW_NPATCHES = 0x00010000
}
 
- Static Public Member Functions inherited from RefCountClass
static int Total_Refs (void)
 
static RefCountClassAdd_Active_Ref (RefCountClass *obj)
 
static RefCountClassSet_Ref_Owner (RefCountClass *obj, char *file, int line)
 
static void Remove_Active_Ref (RefCountClass *obj)
 
static bool Validate_Active_Ref (RefCountClass *obj)
 
- Public Attributes inherited from RefCountClass
RefCountNodeClass ActiveRefNode
 
ActiveRefStruct ActiveRefInfo
 
- Static Public Attributes inherited from RefCountClass
static RefCountListClass ActiveRefList
 

Detailed Description

Definition at line 154 of file meshmdl.h.

Constructor & Destructor Documentation

◆ MeshModelClass() [1/2]

MeshModelClass::MeshModelClass ( void )

Definition at line 71 of file meshmdl.cpp.

◆ MeshModelClass() [2/2]

MeshModelClass::MeshModelClass ( const MeshModelClass & that)

Definition at line 88 of file meshmdl.cpp.

◆ ~MeshModelClass()

MeshModelClass::~MeshModelClass ( void )

Definition at line 107 of file meshmdl.cpp.

Member Function Documentation

◆ clone_materials()

void MeshModelClass::clone_materials ( const MeshModelClass & srcmesh)
protected

Definition at line 1904 of file meshmdlio.cpp.

◆ compute_static_sort_levels()

void MeshModelClass::compute_static_sort_levels ( void )
protected

Definition at line 1802 of file meshmdlio.cpp.

◆ Create_Decal()

void MeshModelClass::Create_Decal ( DecalGeneratorClass * generator,
MeshClass * parent )

◆ Delete_Decal()

void MeshModelClass::Delete_Decal ( uint32 decal_id)

◆ Enable_Alternate_Material_Description()

void MeshModelClass::Enable_Alternate_Material_Description ( bool onoff)

Definition at line 320 of file meshmdl.cpp.

◆ Get_Color_Array()

unsigned * MeshModelClass::Get_Color_Array ( int array_index,
bool create = true )
inline

Definition at line 185 of file meshmdl.h.

◆ Get_DCG_Array()

unsigned * MeshModelClass::Get_DCG_Array ( int pass)
inline

Definition at line 180 of file meshmdl.h.

◆ Get_DCG_Source()

VertexMaterialClass::ColorSourceType MeshModelClass::Get_DCG_Source ( int pass)
inline

Definition at line 182 of file meshmdl.h.

◆ Get_DIG_Array()

unsigned * MeshModelClass::Get_DIG_Array ( int pass)
inline

Definition at line 181 of file meshmdl.h.

◆ Get_DIG_Source()

VertexMaterialClass::ColorSourceType MeshModelClass::Get_DIG_Source ( int pass)
inline

Definition at line 183 of file meshmdl.h.

◆ Get_Gap_Filler()

const GapFillerClass * MeshModelClass::Get_Gap_Filler ( ) const
inline

Definition at line 257 of file meshmdl.h.

◆ Get_Material()

VertexMaterialClass * MeshModelClass::Get_Material ( int vidx,
int pass = 0 ) const
inline

Definition at line 211 of file meshmdl.h.

◆ Get_Material_Array()

MatBufferClass * MeshModelClass::Get_Material_Array ( int pass,
bool create = true )
inline

Definition at line 272 of file meshmdl.h.

◆ Get_Pass_Count()

int MeshModelClass::Get_Pass_Count ( void ) const
inline

Definition at line 174 of file meshmdl.h.

◆ Get_Shader()

ShaderClass MeshModelClass::Get_Shader ( int pidx,
int pass = 0 ) const
inline

Definition at line 213 of file meshmdl.h.

◆ Get_Shader_Array()

ShaderClass * MeshModelClass::Get_Shader_Array ( int pass,
bool create = true )
inline

Definition at line 276 of file meshmdl.h.

◆ Get_Single_Material()

VertexMaterialClass * MeshModelClass::Get_Single_Material ( int pass = 0) const
inline

Definition at line 192 of file meshmdl.h.

◆ Get_Single_Shader()

ShaderClass MeshModelClass::Get_Single_Shader ( int pass = 0) const
inline

Definition at line 194 of file meshmdl.h.

◆ Get_Single_Texture()

TextureClass * MeshModelClass::Get_Single_Texture ( int pass = 0,
int stage = 0 ) const
inline

Definition at line 193 of file meshmdl.h.

◆ get_sort_flags() [1/2]

unsigned int MeshModelClass::get_sort_flags ( int pass) const
protected

Definition at line 1777 of file meshmdlio.cpp.

◆ get_sort_flags() [2/2]

unsigned int MeshModelClass::get_sort_flags ( void ) const
protected

Definition at line 1793 of file meshmdlio.cpp.

◆ Get_Texture()

TextureClass * MeshModelClass::Get_Texture ( int pidx,
int pass = 0,
int stage = 0 ) const
inline

Definition at line 212 of file meshmdl.h.

◆ Get_Texture_Array()

TexBufferClass * MeshModelClass::Get_Texture_Array ( int pass,
int stage,
bool create = true )
inline

Definition at line 268 of file meshmdl.h.

◆ Get_UV_Array()

const Vector2 * MeshModelClass::Get_UV_Array ( int pass = 0,
int stage = 0 )
inline

Definition at line 176 of file meshmdl.h.

◆ Get_UV_Array_By_Index()

const Vector2 * MeshModelClass::Get_UV_Array_By_Index ( int index)
inline

Definition at line 178 of file meshmdl.h.

◆ Get_UV_Array_Count()

int MeshModelClass::Get_UV_Array_Count ( void )
inline

Definition at line 177 of file meshmdl.h.

◆ Has_Material_Array()

bool MeshModelClass::Has_Material_Array ( int pass) const
inline

Definition at line 206 of file meshmdl.h.

◆ Has_Polygon_Renderers()

bool MeshModelClass::Has_Polygon_Renderers ( void )
inline

Definition at line 259 of file meshmdl.h.

◆ Has_Shader_Array()

bool MeshModelClass::Has_Shader_Array ( int pass) const
inline

Definition at line 207 of file meshmdl.h.

◆ Has_Texture_Array()

bool MeshModelClass::Has_Texture_Array ( int pass,
int stage ) const
inline

Definition at line 208 of file meshmdl.h.

◆ Init_For_NPatch_Rendering()

void MeshModelClass::Init_For_NPatch_Rendering ( )

Definition at line 653 of file meshmdl.cpp.

◆ install_alternate_material_desc()

void MeshModelClass::install_alternate_material_desc ( MeshLoadContextClass * context)
protected

Definition at line 1920 of file meshmdlio.cpp.

◆ install_materials()

void MeshModelClass::install_materials ( MeshLoadContextClass * loadinfo)
protected

Definition at line 1866 of file meshmdlio.cpp.

◆ Is_Alternate_Material_Description_Enabled()

bool MeshModelClass::Is_Alternate_Material_Description_Enabled ( void )

Definition at line 351 of file meshmdl.cpp.

◆ Load_W3D()

WW3DErrorType MeshModelClass::Load_W3D ( ChunkLoadClass & cload)
virtual

Reimplemented from MeshGeometryClass.

Definition at line 239 of file meshmdlio.cpp.

◆ Make_Color_Array_Unique()

void MeshModelClass::Make_Color_Array_Unique ( int array_index = 0)

Definition at line 315 of file meshmdl.cpp.

◆ Make_Geometry_Unique()

void MeshModelClass::Make_Geometry_Unique ( )

Definition at line 291 of file meshmdl.cpp.

◆ Make_UV_Array_Unique()

void MeshModelClass::Make_UV_Array_Unique ( int pass = 0,
int stage = 0 )

Definition at line 310 of file meshmdl.cpp.

◆ modify_for_overbright()

void MeshModelClass::modify_for_overbright ( void )
protected

Definition at line 1838 of file meshmdlio.cpp.

◆ Needs_Vertex_Normals()

bool MeshModelClass::Needs_Vertex_Normals ( void )

Definition at line 361 of file meshmdl.cpp.

◆ operator=()

MeshModelClass & MeshModelClass::operator= ( const MeshModelClass & that)

Definition at line 124 of file meshmdl.cpp.

◆ Peek_FVF_Category_Container()

DX8FVFCategoryContainer * MeshModelClass::Peek_FVF_Category_Container ( )

Definition at line 262 of file meshmdl.cpp.

◆ Peek_Material()

VertexMaterialClass * MeshModelClass::Peek_Material ( int vidx,
int pass = 0 ) const
inline

Definition at line 216 of file meshmdl.h.

◆ Peek_Single_Material()

VertexMaterialClass * MeshModelClass::Peek_Single_Material ( int pass = 0) const
inline

Definition at line 198 of file meshmdl.h.

◆ Peek_Single_Texture()

TextureClass * MeshModelClass::Peek_Single_Texture ( int pass = 0,
int stage = 0 ) const
inline

Definition at line 199 of file meshmdl.h.

◆ Peek_Texture()

TextureClass * MeshModelClass::Peek_Texture ( int pidx,
int pass = 0,
int stage = 0 ) const
inline

Definition at line 217 of file meshmdl.h.

◆ post_process()

void MeshModelClass::post_process ( void )
protected

Definition at line 1643 of file meshmdlio.cpp.

◆ post_process_fog()

void MeshModelClass::post_process_fog ( void )
protected

Definition at line 1689 of file meshmdlio.cpp.

◆ read_chunks()

WW3DErrorType MeshModelClass::read_chunks ( ChunkLoadClass & cload,
MeshLoadContextClass * context )
protected

Definition at line 443 of file meshmdlio.cpp.

◆ read_dcg()

WW3DErrorType MeshModelClass::read_dcg ( ChunkLoadClass & cload,
MeshLoadContextClass * context )
protected

Definition at line 1237 of file meshmdlio.cpp.

◆ read_dig()

WW3DErrorType MeshModelClass::read_dig ( ChunkLoadClass & cload,
MeshLoadContextClass * context )
protected

Definition at line 1305 of file meshmdlio.cpp.

◆ read_material_info()

WW3DErrorType MeshModelClass::read_material_info ( ChunkLoadClass & cload,
MeshLoadContextClass * context )
protected

Definition at line 924 of file meshmdlio.cpp.

◆ read_material_pass()

WW3DErrorType MeshModelClass::read_material_pass ( ChunkLoadClass & cload,
MeshLoadContextClass * context )
protected

Definition at line 1034 of file meshmdlio.cpp.

◆ read_materials()

WW3DErrorType MeshModelClass::read_materials ( ChunkLoadClass & cload,
MeshLoadContextClass * context )
protected

◆ read_per_face_texcoord_ids()

WW3DErrorType MeshModelClass::read_per_face_texcoord_ids ( ChunkLoadClass & cload,
MeshLoadContextClass * context )
protected

Definition at line 1536 of file meshmdlio.cpp.

◆ read_per_tri_materials()

WW3DErrorType MeshModelClass::read_per_tri_materials ( ChunkLoadClass & cload,
MeshLoadContextClass * context )
protected

Definition at line 815 of file meshmdlio.cpp.

◆ read_prelit_material()

WW3DErrorType MeshModelClass::read_prelit_material ( ChunkLoadClass & cload,
MeshLoadContextClass * context )
protected

Definition at line 1584 of file meshmdlio.cpp.

◆ read_scg()

WW3DErrorType MeshModelClass::read_scg ( ChunkLoadClass & cload,
MeshLoadContextClass * context )
protected

Definition at line 1367 of file meshmdlio.cpp.

◆ read_shader_ids()

WW3DErrorType MeshModelClass::read_shader_ids ( ChunkLoadClass & cload,
MeshLoadContextClass * context )
protected

Definition at line 1143 of file meshmdlio.cpp.

◆ read_shaders()

WW3DErrorType MeshModelClass::read_shaders ( ChunkLoadClass & cload,
MeshLoadContextClass * context )
protected

Definition at line 946 of file meshmdlio.cpp.

◆ read_stage_texcoords()

WW3DErrorType MeshModelClass::read_stage_texcoords ( ChunkLoadClass & cload,
MeshLoadContextClass * context )
protected

Definition at line 1489 of file meshmdlio.cpp.

◆ read_texcoords()

WW3DErrorType MeshModelClass::read_texcoords ( ChunkLoadClass & cload,
MeshLoadContextClass * context )
protected

Definition at line 586 of file meshmdlio.cpp.

◆ read_texture_ids()

WW3DErrorType MeshModelClass::read_texture_ids ( ChunkLoadClass & cload,
MeshLoadContextClass * context )
protected

Definition at line 1432 of file meshmdlio.cpp.

◆ read_texture_stage()

WW3DErrorType MeshModelClass::read_texture_stage ( ChunkLoadClass & cload,
MeshLoadContextClass * context )
protected

Definition at line 1385 of file meshmdlio.cpp.

◆ read_textures()

WW3DErrorType MeshModelClass::read_textures ( ChunkLoadClass & cload,
MeshLoadContextClass * context )
protected

Definition at line 1006 of file meshmdlio.cpp.

◆ read_v2_materials()

WW3DErrorType MeshModelClass::read_v2_materials ( ChunkLoadClass & cload,
MeshLoadContextClass * context )
protected

◆ read_v3_materials()

WW3DErrorType MeshModelClass::read_v3_materials ( ChunkLoadClass & cload,
MeshLoadContextClass * context )
protected

Definition at line 626 of file meshmdlio.cpp.

◆ read_vertex_colors()

WW3DErrorType MeshModelClass::read_vertex_colors ( ChunkLoadClass & cload,
MeshLoadContextClass * context )
protected

Definition at line 878 of file meshmdlio.cpp.

◆ read_vertex_material_ids()

WW3DErrorType MeshModelClass::read_vertex_material_ids ( ChunkLoadClass & cload,
MeshLoadContextClass * context )
protected

Definition at line 1092 of file meshmdlio.cpp.

◆ read_vertex_materials()

WW3DErrorType MeshModelClass::read_vertex_materials ( ChunkLoadClass & cload,
MeshLoadContextClass * context )
protected

Definition at line 975 of file meshmdlio.cpp.

◆ Register_For_Rendering()

void MeshModelClass::Register_For_Rendering ( )

Definition at line 181 of file meshmdl.cpp.

◆ Register_Type()

int MeshModelClass::Register_Type ( )
protected

◆ Replace_Texture()

void MeshModelClass::Replace_Texture ( TextureClass * texture,
TextureClass * new_texture )

Definition at line 207 of file meshmdl.cpp.

◆ Replace_VertexMaterial()

void MeshModelClass::Replace_VertexMaterial ( VertexMaterialClass * vmat,
VertexMaterialClass * new_vmat )

Definition at line 235 of file meshmdl.cpp.

◆ Reset()

void MeshModelClass::Reset ( int polycount,
int vertcount,
int passcount )

Definition at line 157 of file meshmdl.cpp.

◆ Set_HTree()

void MeshModelClass::Set_HTree ( const HTreeClass * htree)
protected

◆ Set_Material()

void MeshModelClass::Set_Material ( int vidx,
VertexMaterialClass * vmat,
int pass = 0 )
inline

Definition at line 201 of file meshmdl.h.

◆ Set_Pass_Count()

void MeshModelClass::Set_Pass_Count ( int passes)
inline

Definition at line 173 of file meshmdl.h.

◆ Set_Shader()

void MeshModelClass::Set_Shader ( int pidx,
ShaderClass shader,
int pass = 0 )
inline

Definition at line 202 of file meshmdl.h.

◆ Set_Single_Material()

void MeshModelClass::Set_Single_Material ( VertexMaterialClass * vmat,
int pass = 0 )
inline

Definition at line 187 of file meshmdl.h.

◆ Set_Single_Shader()

void MeshModelClass::Set_Single_Shader ( ShaderClass shader,
int pass = 0 )
inline

Definition at line 189 of file meshmdl.h.

◆ Set_Single_Texture()

void MeshModelClass::Set_Single_Texture ( TextureClass * tex,
int pass = 0,
int stage = 0 )
inline

Definition at line 188 of file meshmdl.h.

◆ Set_Texture()

void MeshModelClass::Set_Texture ( int pidx,
TextureClass * tex,
int pass = 0,
int stage = 0 )
inline

Definition at line 203 of file meshmdl.h.

◆ Shadow_Render()

void MeshModelClass::Shadow_Render ( SpecialRenderInfoClass & rinfo,
const Matrix3D & tm,
const HTreeClass * htree )

Definition at line 274 of file meshmdl.cpp.

Friends And Related Symbol Documentation

◆ DX8MeshRendererClass

friend class DX8MeshRendererClass
friend

Definition at line 346 of file meshmdl.h.

◆ DX8PolygonRendererClass

friend class DX8PolygonRendererClass
friend

Definition at line 347 of file meshmdl.h.

◆ DX8SkinFVFCategoryContainer

friend class DX8SkinFVFCategoryContainer
friend

Definition at line 345 of file meshmdl.h.

◆ MeshClass

friend class MeshClass
friend

Definition at line 341 of file meshmdl.h.

◆ MeshDeformClass

friend class MeshDeformClass
friend

Definition at line 343 of file meshmdl.h.

◆ MeshDeformSetClass

friend class MeshDeformSetClass
friend

Definition at line 342 of file meshmdl.h.

◆ MeshLoadContextClass

friend class MeshLoadContextClass
friend

Definition at line 344 of file meshmdl.h.

Member Data Documentation

◆ AlternateMatDesc

MeshMatDescClass* MeshModelClass::AlternateMatDesc
protected

Definition at line 328 of file meshmdl.h.

◆ CurMatDesc

MeshMatDescClass* MeshModelClass::CurMatDesc
protected

Definition at line 329 of file meshmdl.h.

◆ DefMatDesc

MeshMatDescClass* MeshModelClass::DefMatDesc
protected

Definition at line 327 of file meshmdl.h.

◆ GapFiller

GapFillerClass* MeshModelClass::GapFiller
protected

Definition at line 338 of file meshmdl.h.

◆ HasBeenInUse

bool MeshModelClass::HasBeenInUse
protected

Definition at line 339 of file meshmdl.h.

◆ MatInfo

MaterialInfoClass* MeshModelClass::MatInfo
protected

Definition at line 332 of file meshmdl.h.

◆ PolygonRendererList

DX8PolygonRendererList MeshModelClass::PolygonRendererList
protected

Definition at line 335 of file meshmdl.h.


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