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

#include <mesh.h>

Inherits W3DMPO, and RenderObjClass.

Public Member Functions

 MeshClass (void)
 
 MeshClass (const MeshClass &src)
 
MeshClassoperator= (const MeshClass &)
 
virtual ~MeshClass (void)
 
virtual RenderObjClassClone (void) const
 
virtual int Class_ID (void) const
 
virtual const char * Get_Name (void) const
 
virtual void Set_Name (const char *name)
 
virtual int Get_Num_Polys (void) const
 
virtual void Render (RenderInfoClass &rinfo)
 
void Render_Material_Pass (MaterialPassClass *pass, IndexBufferClass *ib)
 
virtual void Special_Render (SpecialRenderInfoClass &rinfo)
 
virtual bool Cast_Ray (RayCollisionTestClass &raytest)
 
virtual bool Cast_AABox (AABoxCollisionTestClass &boxtest)
 
virtual bool Cast_OBBox (OBBoxCollisionTestClass &boxtest)
 
virtual bool Intersect_AABox (AABoxIntersectionTestClass &boxtest)
 
virtual bool Intersect_OBBox (OBBoxIntersectionTestClass &boxtest)
 
virtual void Get_Obj_Space_Bounding_Sphere (SphereClass &sphere) const
 
virtual void Get_Obj_Space_Bounding_Box (AABoxClass &box) const
 
virtual void Scale (float scale)
 
virtual void Scale (float scalex, float scaley, float scalez)
 
virtual MaterialInfoClassGet_Material_Info (void)
 
virtual int Get_Sort_Level (void) const
 
virtual void Set_Sort_Level (int level)
 
virtual void Create_Decal (DecalGeneratorClass *generator)
 
virtual void Delete_Decal (uint32 decal_id)
 
WW3DErrorType Init (const MeshBuilderClass &builder, MaterialInfoClass *matinfo, const char *name, const char *hmodelname)
 
WW3DErrorType Load_W3D (ChunkLoadClass &cload)
 
void Generate_Culling_Tree (void)
 
MeshModelClassGet_Model (void)
 
MeshModelClassPeek_Model (void)
 
uint32 Get_W3D_Flags (void)
 
const char * Get_User_Text (void) const
 
int Get_Draw_Call_Count (void) const
 
bool Contains (const Vector3 &point)
 
void Get_Deformed_Vertices (Vector3 *dst_vert, Vector3 *dst_norm)
 
void Get_Deformed_Vertices (Vector3 *dst_vert)
 
void Set_Lighting_Environment (LightEnvironmentClass *light_env)
 
LightEnvironmentClassGet_Lighting_Environment (void)
 
float Get_Alpha_Override (void)
 
void Set_Next_Visible_Skin (MeshClass *next_visible)
 
MeshClassPeek_Next_Visible_Skin (void)
 
void Set_Base_Vertex_Offset (int base)
 
int Get_Base_Vertex_Offset (void)
 
void Replace_Texture (TextureClass *texture, TextureClass *new_texture)
 
void Replace_VertexMaterial (VertexMaterialClass *vmat, VertexMaterialClass *new_vmat)
 
void Make_Unique (bool force_meshmdl_clone=false)
 
unsigned Get_Debug_Id () const
 
void Set_Debugger_Disable (bool b)
 
bool Is_Disabled_By_Debugger () const
 
- Public Member Functions inherited from W3DMPO
virtual ~W3DMPO ()
 
- Public Member Functions inherited from RenderObjClass
 RenderObjClass (void)
 
 RenderObjClass (const RenderObjClass &src)
 
RenderObjClassoperator= (const RenderObjClass &)
 
virtual ~RenderObjClass (void)
 
virtual const char * Get_Base_Model_Name (void) const
 
virtual void Set_Base_Model_Name (const char *name)
 
virtual void On_Frame_Update ()
 
virtual void Restart (void)
 
virtual void Add (SceneClass *scene)
 
virtual void Remove (void)
 
virtual SceneClassGet_Scene (void)
 
virtual SceneClassPeek_Scene (void)
 
virtual void Set_Container (RenderObjClass *con)
 
virtual void Validate_Transform (void) const
 
RenderObjClassGet_Container (void) const
 
virtual void Set_Transform (const Matrix3D &m)
 
virtual void Set_Position (const Vector3 &v)
 
const Matrix3DGet_Transform (void) const
 
const Matrix3DGet_Transform (bool &is_transform_identity) const
 
const Matrix3DGet_Transform_No_Validity_Check (void) const
 
const Matrix3DGet_Transform_No_Validity_Check (bool &is_transform_identity) const
 
bool Is_Transform_Identity () const
 
bool Is_Transform_Identity_No_Validity_Check () const
 
Vector3 Get_Position (void) const
 
virtual void Notify_Added (SceneClass *scene)
 
virtual void Notify_Removed (SceneClass *scene)
 
virtual int Get_Num_Sub_Objects (void) const
 
virtual RenderObjClassGet_Sub_Object (int index) const
 
virtual int Add_Sub_Object (RenderObjClass *subobj)
 
virtual int Remove_Sub_Object (RenderObjClass *robj)
 
virtual RenderObjClassGet_Sub_Object_By_Name (const char *name, int *index=NULL) const
 
virtual int Get_Num_Sub_Objects_On_Bone (int boneindex) const
 
virtual RenderObjClassGet_Sub_Object_On_Bone (int index, int boneindex) const
 
virtual int Get_Sub_Object_Bone_Index (RenderObjClass *subobj) const
 
virtual int Get_Sub_Object_Bone_Index (int LodIndex, int ModelIndex) const
 
virtual int Add_Sub_Object_To_Bone (RenderObjClass *subobj, int bone_index)
 
virtual int Add_Sub_Object_To_Bone (RenderObjClass *subobj, const char *bname)
 
virtual int Remove_Sub_Objects_From_Bone (int boneindex)
 
virtual int Remove_Sub_Objects_From_Bone (const char *bname)
 
virtual void Update_Sub_Object_Transforms (void)
 
virtual void Set_Animation (void)
 
virtual void Set_Animation (HAnimClass *motion, float frame, int anim_mode=ANIM_MODE_MANUAL)
 
virtual void Set_Animation (HAnimClass *motion0, float frame0, HAnimClass *motion1, float frame1, float percentage)
 
virtual void Set_Animation (HAnimComboClass *anim_combo)
 
virtual HAnimClassPeek_Animation (void)
 
virtual int Get_Num_Bones (void)
 
virtual const char * Get_Bone_Name (int bone_index)
 
virtual int Get_Bone_Index (const char *bonename)
 
virtual const Matrix3DGet_Bone_Transform (const char *bonename)
 
virtual const Matrix3DGet_Bone_Transform (int boneindex)
 
virtual void Capture_Bone (int bindex)
 
virtual void Release_Bone (int bindex)
 
virtual bool Is_Bone_Captured (int bindex) const
 
virtual void Control_Bone (int bindex, const Matrix3D &objtm, bool world_space_translation=false)
 
virtual const HTreeClassGet_HTree (void) const
 
virtual bool Intersect (IntersectionClass *Intersection, IntersectionResultClass *Final_Result)
 
virtual bool Intersect_Sphere (IntersectionClass *Intersection, IntersectionResultClass *Final_Result)
 
virtual bool Intersect_Sphere_Quick (IntersectionClass *Intersection, IntersectionResultClass *Final_Result)
 
virtual const SphereClassGet_Bounding_Sphere (void) const
 
virtual const AABoxClassGet_Bounding_Box (void) const
 
virtual void Update_Obj_Space_Bounding_Volumes (void)
 
virtual void Prepare_LOD (CameraClass &camera)
 
virtual void Recalculate_Static_LOD_Factors (void)
 
virtual void Increment_LOD (void)
 
virtual void Decrement_LOD (void)
 
virtual float Get_Cost (void) const
 
virtual float Get_Value (void) const
 
virtual float Get_Post_Increment_Value (void) const
 
virtual void Set_LOD_Level (int lod)
 
virtual int Get_LOD_Level (void) const
 
virtual int Get_LOD_Count (void) const
 
virtual void Set_LOD_Bias (float bias)
 
virtual int Calculate_Cost_Value_Arrays (float screen_area, float *values, float *costs) const
 
virtual RenderObjClassGet_Current_LOD (void)
 
virtual bool Build_Dependency_List (DynamicVectorClass< StringClass > &file_list, bool recursive=true)
 
virtual bool Build_Texture_List (DynamicVectorClass< StringClass > &texture_file_list, bool recursive=true)
 
virtual void Set_User_Data (void *value, bool recursive=false)
 
virtual void * Get_User_Data ()
 
virtual int Get_Num_Snap_Points (void)
 
virtual void Get_Snap_Point (int index, Vector3 *set)
 
virtual float Get_Screen_Size (CameraClass &camera)
 
virtual void Set_ObjectScale (float scale)
 
const float Get_ObjectScale (void) const
 
void Set_ObjectColor (unsigned int color)
 
const unsigned int Get_ObjectColor (void) const
 
virtual int Is_Really_Visible (void)
 
virtual int Is_Not_Hidden_At_All (void)
 
virtual int Is_Visible (void) const
 
virtual void Set_Visible (int onoff)
 
virtual int Is_Hidden (void) const
 
virtual void Set_Hidden (int onoff)
 
virtual int Is_Animation_Hidden (void) const
 
virtual void Set_Animation_Hidden (int onoff)
 
virtual int Is_Force_Visible (void) const
 
virtual void Set_Force_Visible (int onoff)
 
virtual int Is_Translucent (void) const
 
virtual void Set_Translucent (int onoff)
 
virtual int Is_Alpha (void) const
 
virtual void Set_Alpha (int onoff)
 
virtual int Is_Additive (void) const
 
virtual void Set_Additive (int onoff)
 
virtual int Get_Collision_Type (void) const
 
virtual void Set_Collision_Type (int type)
 
virtual bool Is_Complete (void)
 
virtual bool Is_In_Scene (void)
 
virtual float Get_Native_Screen_Size (void) const
 
virtual void Set_Native_Screen_Size (float screensize)
 
void Set_Sub_Objects_Match_LOD (int onoff)
 
int Is_Sub_Objects_Match_LOD_Enabled (void)
 
void Set_Sub_Object_Transforms_Dirty (bool onoff)
 
bool Are_Sub_Object_Transforms_Dirty (void)
 
void Set_Ignore_LOD_Cost (bool onoff)
 
bool Is_Ignoring_LOD_Cost (void)
 
void Set_Is_Self_Shadowed ()
 
void Unset_Is_Self_Shadowed ()
 
int Is_Self_Shadowed () const
 
virtual const PersistFactoryClassGet_Factory (void) const
 
virtual bool Save (ChunkSaveClass &csave)
 
virtual bool Load (ChunkLoadClass &cload)
 
RenderHookClassGet_Render_Hook (void)
 
void Set_Render_Hook (RenderHookClass *hook)
 
- 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 PostLoadableClass
 PostLoadableClass (void)
 
virtual ~PostLoadableClass (void)
 
virtual void On_Post_Load (void)
 
bool Is_Post_Load_Registered (void)
 
void Set_Post_Load_Registered (bool onoff)
 
- Public Member Functions inherited from MultiListObjectClass
 MultiListObjectClass (void)
 
virtual ~MultiListObjectClass (void)
 
MultiListNodeClassGet_List_Node () const
 
void Set_List_Node (MultiListNodeClass *node)
 

Static Public Attributes

static bool Legacy_Meshes_Fogged = true
 
- Static Public Attributes inherited from RenderObjClass
static const float AT_MIN_LOD = FLT_MAX
 
static const float AT_MAX_LOD = -1.0f
 
- Static Public Attributes inherited from RefCountClass
static RefCountListClass ActiveRefList
 

Protected Member Functions

virtual void Add_Dependencies_To_List (DynamicVectorClass< StringClass > &file_list, bool textures_only=false)
 
virtual void Update_Cached_Bounding_Volumes (void) const
 
void Free (void)
 
void install_materials (MeshLoadInfoClass *loadinfo)
 
void clone_materials (const MeshClass &srcmesh)
 
- Protected Member Functions inherited from W3DMPO
virtual int glueEnforcer () const =0
 
- Protected Member Functions inherited from RenderObjClass
virtual void Update_Sub_Object_Bits (void)
 
bool Bounding_Volumes_Valid (void) const
 
void Invalidate_Cached_Bounding_Volumes (void) const
 
void Validate_Cached_Bounding_Volumes (void) const
 
- Protected Member Functions inherited from RefCountClass
virtual ~RefCountClass (void)
 

Protected Attributes

MeshModelClassModel
 
DecalMeshClassDecalMesh
 
LightEnvironmentClassLightEnvironment
 
LightEnvironmentClass m_localLightEnv
 
float m_alphaOverride
 
float m_materialPassEmissiveOverride
 
float m_materialPassAlphaOverride
 
int BaseVertexOffset
 
MeshClassNextVisibleSkin
 
unsigned MeshDebugId
 
bool IsDisabledByDebugger
 
- Protected Attributes inherited from RenderObjClass
unsigned long Bits
 
Matrix3D Transform
 
float ObjectScale
 
unsigned int ObjectColor
 
SphereClass CachedBoundingSphere
 
AABoxClass CachedBoundingBox
 
float NativeScreenSize
 
bool IsTransformIdentity
 
SceneClassScene
 
RenderObjClassContainer
 
void * User_Data
 
RenderHookClassRenderHook
 

Friends

class MeshBuilderClass
 

Additional Inherited Members

- Public Types inherited from RenderObjClass
enum  { USER_DATA_MATERIAL_OVERRIDE = 0x01234567 }
 
enum  {
  CLASSID_UNKNOWN = 0xFFFFFFFF , CLASSID_MESH = 0 , CLASSID_HMODEL , CLASSID_DISTLOD ,
  CLASSID_PREDLODGROUP , CLASSID_TILEMAP , CLASSID_IMAGE3D , CLASSID_LINE3D ,
  CLASSID_BITMAP2D , CLASSID_CAMERA , CLASSID_DYNAMESH , CLASSID_DYNASCREENMESH ,
  CLASSID_TEXTDRAW , CLASSID_FOG , CLASSID_LAYERFOG , CLASSID_LIGHT ,
  CLASSID_PARTICLEEMITTER , CLASSID_PARTICLEBUFFER , CLASSID_SCREENPOINTGROUP , CLASSID_VIEWPOINTGROUP ,
  CLASSID_WORLDPOINTGROUP , CLASSID_TEXT2D , CLASSID_TEXT3D , CLASSID_NULL ,
  CLASSID_COLLECTION , CLASSID_FLARE , CLASSID_HLOD , CLASSID_AABOX ,
  CLASSID_OBBOX , CLASSID_SEGLINE , CLASSID_SPHERE , CLASSID_RING ,
  CLASSID_BOUNDFOG , CLASSID_DAZZLE , CLASSID_SOUND , CLASSID_SEGLINETRAIL ,
  CLASSID_LAND , CLASSID_SHDMESH , CLASSID_LAST = 0x0000FFFF
}
 
enum  AnimMode {
  ANIM_MODE_MANUAL = 0 , ANIM_MODE_LOOP , ANIM_MODE_ONCE , ANIM_MODE_LOOP_PINGPONG ,
  ANIM_MODE_LOOP_BACKWARDS , ANIM_MODE_ONCE_BACKWARDS
}
 
- 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
 
- Protected Types inherited from RenderObjClass
enum  {
  COLL_TYPE_MASK = 0x000000FF , IS_VISIBLE = 0x00000100 , IS_NOT_HIDDEN = 0x00000200 , IS_NOT_ANIMATION_HIDDEN = 0x00000400 ,
  IS_FORCE_VISIBLE = 0x00000800 , BOUNDING_VOLUMES_VALID = 0x00002000 , IS_TRANSLUCENT = 0x00004000 , IGNORE_LOD_COST = 0x00008000 ,
  SUBOBJS_MATCH_LOD = 0x00010000 , SUBOBJ_TRANSFORMS_DIRTY = 0x00020000 , IS_ALPHA = 0x00040000 , IS_ADDITIVE = 0x00100000 ,
  IS_SELF_SHADOWED = 0x00080000 , IS_CHEATER = 0x00100000 , IS_REALLY_VISIBLE = IS_VISIBLE | IS_NOT_HIDDEN | IS_NOT_ANIMATION_HIDDEN , IS_NOT_HIDDEN_AT_ALL = IS_NOT_HIDDEN | IS_NOT_ANIMATION_HIDDEN ,
  DEFAULT_BITS = COLL_TYPE_ALL | IS_NOT_HIDDEN | IS_NOT_ANIMATION_HIDDEN
}
 

Detailed Description

MeshClass – Render3DObject for rendering meshes.

Definition at line 74 of file mesh.h.

Constructor & Destructor Documentation

◆ MeshClass() [1/2]

MeshClass::MeshClass ( void )

Definition at line 161 of file mesh.cpp.

◆ MeshClass() [2/2]

MeshClass::MeshClass ( const MeshClass & src)

Definition at line 189 of file mesh.cpp.

◆ ~MeshClass()

MeshClass::~MeshClass ( void )
virtual

Definition at line 247 of file mesh.cpp.

Member Function Documentation

◆ Add_Dependencies_To_List()

void MeshClass::Add_Dependencies_To_List ( DynamicVectorClass< StringClass > & file_list,
bool textures_only = false )
protectedvirtual

Reimplemented from RenderObjClass.

Definition at line 1466 of file mesh.cpp.

◆ Cast_AABox()

bool MeshClass::Cast_AABox ( AABoxCollisionTestClass & boxtest)
virtual

Reimplemented from RenderObjClass.

Definition at line 1274 of file mesh.cpp.

◆ Cast_OBBox()

bool MeshClass::Cast_OBBox ( OBBoxCollisionTestClass & boxtest)
virtual

Reimplemented from RenderObjClass.

Definition at line 1304 of file mesh.cpp.

◆ Cast_Ray()

bool MeshClass::Cast_Ray ( RayCollisionTestClass & raytest)
virtual

Reimplemented from RenderObjClass.

Definition at line 1218 of file mesh.cpp.

◆ Class_ID()

virtual int MeshClass::Class_ID ( void ) const
inlinevirtual

Reimplemented from RenderObjClass.

Definition at line 88 of file mesh.h.

◆ Clone()

RenderObjClass * MeshClass::Clone ( void ) const
virtual

Implements RenderObjClass.

Definition at line 306 of file mesh.cpp.

◆ clone_materials()

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

◆ Contains()

bool MeshClass::Contains ( const Vector3 & point)

Definition at line 266 of file mesh.cpp.

◆ Create_Decal()

void MeshClass::Create_Decal ( DecalGeneratorClass * generator)
virtual

Reimplemented from RenderObjClass.

Definition at line 540 of file mesh.cpp.

◆ Delete_Decal()

void MeshClass::Delete_Decal ( uint32 decal_id)
virtual

Reimplemented from RenderObjClass.

Definition at line 615 of file mesh.cpp.

◆ Free()

void MeshClass::Free ( void )
protected

Definition at line 287 of file mesh.cpp.

◆ Generate_Culling_Tree()

void MeshClass::Generate_Culling_Tree ( void )

Definition at line 1448 of file mesh.cpp.

◆ Get_Alpha_Override()

float MeshClass::Get_Alpha_Override ( void )
inline

Definition at line 147 of file mesh.h.

◆ Get_Base_Vertex_Offset()

int MeshClass::Get_Base_Vertex_Offset ( void )
inline

Definition at line 153 of file mesh.h.

◆ Get_Debug_Id()

unsigned MeshClass::Get_Debug_Id ( ) const
inline

Definition at line 162 of file mesh.h.

◆ Get_Deformed_Vertices() [1/2]

void MeshClass::Get_Deformed_Vertices ( Vector3 * dst_vert)

Definition at line 519 of file mesh.cpp.

◆ Get_Deformed_Vertices() [2/2]

void MeshClass::Get_Deformed_Vertices ( Vector3 * dst_vert,
Vector3 * dst_norm )

Definition at line 500 of file mesh.cpp.

◆ Get_Draw_Call_Count()

int MeshClass::Get_Draw_Call_Count ( void ) const

Definition at line 1579 of file mesh.cpp.

◆ Get_Lighting_Environment()

LightEnvironmentClass * MeshClass::Get_Lighting_Environment ( void )
inline

Definition at line 146 of file mesh.h.

◆ Get_Material_Info()

MaterialInfoClass * MeshClass::Get_Material_Info ( void )
virtual

Reimplemented from RenderObjClass.

Definition at line 395 of file mesh.cpp.

◆ Get_Model()

MeshModelClass * MeshClass::Get_Model ( void )

Definition at line 419 of file mesh.cpp.

◆ Get_Name()

const char * MeshClass::Get_Name ( void ) const
virtual

Reimplemented from RenderObjClass.

Definition at line 324 of file mesh.cpp.

◆ Get_Num_Polys()

int MeshClass::Get_Num_Polys ( void ) const
virtual

Reimplemented from RenderObjClass.

Definition at line 635 of file mesh.cpp.

◆ Get_Obj_Space_Bounding_Box()

void MeshClass::Get_Obj_Space_Bounding_Box ( AABoxClass & box) const
virtual

Reimplemented from RenderObjClass.

Definition at line 1426 of file mesh.cpp.

◆ Get_Obj_Space_Bounding_Sphere()

void MeshClass::Get_Obj_Space_Bounding_Sphere ( SphereClass & sphere) const
virtual

Reimplemented from RenderObjClass.

Definition at line 1403 of file mesh.cpp.

◆ Get_Sort_Level()

int MeshClass::Get_Sort_Level ( void ) const
virtual

Reimplemented from RenderObjClass.

Definition at line 1564 of file mesh.cpp.

◆ Get_User_Text()

const char * MeshClass::Get_User_Text ( void ) const

Definition at line 377 of file mesh.cpp.

◆ Get_W3D_Flags()

uint32 MeshClass::Get_W3D_Flags ( void )

Definition at line 359 of file mesh.cpp.

◆ Init()

WW3DErrorType MeshClass::Init ( const MeshBuilderClass & builder,
MaterialInfoClass * matinfo,
const char * name,
const char * hmodelname )

◆ install_materials()

void MeshClass::install_materials ( MeshLoadInfoClass * loadinfo)
protected

◆ Intersect_AABox()

bool MeshClass::Intersect_AABox ( AABoxIntersectionTestClass & boxtest)
virtual

Reimplemented from RenderObjClass.

Definition at line 1352 of file mesh.cpp.

◆ Intersect_OBBox()

bool MeshClass::Intersect_OBBox ( OBBoxIntersectionTestClass & boxtest)
virtual

Reimplemented from RenderObjClass.

Definition at line 1379 of file mesh.cpp.

◆ Is_Disabled_By_Debugger()

bool MeshClass::Is_Disabled_By_Debugger ( ) const
inline

Definition at line 165 of file mesh.h.

◆ Load_W3D()

WW3DErrorType MeshClass::Load_W3D ( ChunkLoadClass & cload)

Definition at line 1139 of file mesh.cpp.

◆ Make_Unique()

void MeshClass::Make_Unique ( bool force_meshmdl_clone = false)

Definition at line 1114 of file mesh.cpp.

◆ operator=()

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

Definition at line 218 of file mesh.cpp.

◆ Peek_Model()

MeshModelClass * MeshClass::Peek_Model ( void )
inline

Definition at line 195 of file mesh.h.

◆ Peek_Next_Visible_Skin()

MeshClass * MeshClass::Peek_Next_Visible_Skin ( void )
inline

Definition at line 150 of file mesh.h.

◆ Render()

void MeshClass::Render ( RenderInfoClass & rinfo)
virtual

Implements RenderObjClass.

Definition at line 660 of file mesh.cpp.

◆ Render_Material_Pass()

void MeshClass::Render_Material_Pass ( MaterialPassClass * pass,
IndexBufferClass * ib )

Definition at line 823 of file mesh.cpp.

◆ Replace_Texture()

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

Definition at line 1072 of file mesh.cpp.

◆ Replace_VertexMaterial()

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

Definition at line 1093 of file mesh.cpp.

◆ Scale() [1/2]

void MeshClass::Scale ( float scale)
virtual

Reimplemented from RenderObjClass.

Definition at line 438 of file mesh.cpp.

◆ Scale() [2/2]

void MeshClass::Scale ( float scalex,
float scaley,
float scalez )
virtual

Reimplemented from RenderObjClass.

Definition at line 469 of file mesh.cpp.

◆ Set_Base_Vertex_Offset()

void MeshClass::Set_Base_Vertex_Offset ( int base)
inline

Definition at line 152 of file mesh.h.

◆ Set_Debugger_Disable()

void MeshClass::Set_Debugger_Disable ( bool b)
inline

Definition at line 164 of file mesh.h.

◆ Set_Lighting_Environment()

void MeshClass::Set_Lighting_Environment ( LightEnvironmentClass * light_env)
inline

Definition at line 145 of file mesh.h.

◆ Set_Name()

void MeshClass::Set_Name ( const char * name)
virtual

Reimplemented from RenderObjClass.

Definition at line 342 of file mesh.cpp.

◆ Set_Next_Visible_Skin()

void MeshClass::Set_Next_Visible_Skin ( MeshClass * next_visible)
inline

Definition at line 149 of file mesh.h.

◆ Set_Sort_Level()

void MeshClass::Set_Sort_Level ( int level)
virtual

Reimplemented from RenderObjClass.

Definition at line 1572 of file mesh.cpp.

◆ Special_Render()

void MeshClass::Special_Render ( SpecialRenderInfoClass & rinfo)
virtual

Reimplemented from RenderObjClass.

Definition at line 1027 of file mesh.cpp.

◆ Update_Cached_Bounding_Volumes()

void MeshClass::Update_Cached_Bounding_Volumes ( void ) const
protectedvirtual

Reimplemented from RenderObjClass.

Definition at line 1515 of file mesh.cpp.

Friends And Related Symbol Documentation

◆ MeshBuilderClass

friend class MeshBuilderClass
friend

Definition at line 192 of file mesh.h.

Member Data Documentation

◆ BaseVertexOffset

int MeshClass::BaseVertexOffset
protected

Definition at line 186 of file mesh.h.

◆ DecalMesh

DecalMeshClass* MeshClass::DecalMesh
protected

Definition at line 179 of file mesh.h.

◆ IsDisabledByDebugger

bool MeshClass::IsDisabledByDebugger
protected

Definition at line 190 of file mesh.h.

◆ Legacy_Meshes_Fogged

bool MeshClass::Legacy_Meshes_Fogged = true
static

Definition at line 156 of file mesh.h.

◆ LightEnvironment

LightEnvironmentClass* MeshClass::LightEnvironment
protected

Definition at line 181 of file mesh.h.

◆ m_alphaOverride

float MeshClass::m_alphaOverride
protected

Definition at line 183 of file mesh.h.

◆ m_localLightEnv

LightEnvironmentClass MeshClass::m_localLightEnv
protected

Definition at line 182 of file mesh.h.

◆ m_materialPassAlphaOverride

float MeshClass::m_materialPassAlphaOverride
protected

Definition at line 185 of file mesh.h.

◆ m_materialPassEmissiveOverride

float MeshClass::m_materialPassEmissiveOverride
protected

Definition at line 184 of file mesh.h.

◆ MeshDebugId

unsigned MeshClass::MeshDebugId
protected

Definition at line 189 of file mesh.h.

◆ Model

MeshModelClass* MeshClass::Model
protected

Definition at line 178 of file mesh.h.

◆ NextVisibleSkin

MeshClass* MeshClass::NextVisibleSkin
protected

Definition at line 187 of file mesh.h.


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