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

#include <dynamesh.h>

Inherits RenderObjClass.

Inherited by DynamicScreenMeshClass, and TextDrawClass.

Public Types

enum  { MAX_COLOR_ARRAYS = MeshMatDescClass::MAX_COLOR_ARRAYS , MAX_PASSES = MeshMatDescClass::MAX_PASSES }
 
- 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
}
 

Public Member Functions

 DynamicMeshClass (int max_poly, int max_vert)
 
 DynamicMeshClass (int max_poly, int max_vert, MaterialInfoClass *mat_info)
 
 DynamicMeshClass (const DynamicMeshClass &src)
 
virtual ~DynamicMeshClass (void)
 
virtual RenderObjClassClone (void) const
 
virtual int Class_ID (void) const
 
virtual void Render (RenderInfoClass &rinfo)
 
virtual MaterialInfoClassPeek_Material_Info (void)
 
virtual MaterialInfoClassGet_Material_Info (void)
 
virtual void Set_Material_Info (MaterialInfoClass *mat_info)
 
virtual int Get_Num_Polys (void) const
 
virtual int Get_Num_Vertices (void) const
 
virtual int Get_Sort_Level (void) const
 
virtual void Set_Sort_Level (int level)
 
virtual void Get_Obj_Space_Bounding_Sphere (SphereClass &sphere) const
 
virtual void Get_Obj_Space_Bounding_Box (AABoxClass &box) const
 
int Set_Vertex_Material (int idx, int pass=0)
 
int Set_Vertex_Material (VertexMaterialClass *material, bool dont_search=false, int pass=0)
 
void Set_Pass_Count (int passes)
 
int Get_Pass_Count ()
 
int Set_Texture (int idx, int pass=0)
 
int Set_Texture (TextureClass *texture, bool dont_search=false, int pass=0)
 
int Set_Shader (const ShaderClass &shader, int pass=0)
 
void Set_Polygon_Info (const PolygonInfoClass &polyInfo, bool dont_search_texture=false, bool dont_search_vertex_material=false, int pass=0)
 
int Set_Vertex_Color (const Vector4 &color, int color_array_index=0)
 
int Set_Vertex_Color (const Vector3 &color, int color_array_index=0)
 
void Reset_Flags ()
 
void Reset_Native_Mesh ()
 
void Reset_Mesh_Counters ()
 
virtual void Reset (void)
 
void Resize (int max_polys, int max_verts)
 
void Begin_Tri_Strip (void)
 
void Begin_Tri_Fan (void)
 
void Begin_Vertex (void)
 
virtual void Location (float x, float y, float z)
 
void Location_Inline (float x, float y, float z)
 
void Location_Inline (Vector3 &v)
 
Vector3Get_Location (int index)
 
void Normal (float x, float y, float z)
 
void Normal (Vector3 &v)
 
Vector3Get_Normal (int index)
 
void Color (float r, float g, float b, float a, int color_array_index=0)
 
void Color (const Vector4 &v, int color_array_index=0)
 
void Color (unsigned v, int color_array_index=0)
 
unsigned Get_Color (int index, int color_array_index=0)
 
void UV (float u, float v, int uv_array_index=0)
 
void UV (Vector2 &v, int uv_array_index=0)
 
Vector2Get_UV (int index, int uv_array_index=0)
 
bool End_Vertex (void)
 
bool Vertex (float x, float y, float z, float u, float v)
 
bool Vertex (Vector2 v)
 
void End_Tri_Strip (void)
 
void End_Tri_Fan (void)
 
virtual void Move_Vertex (int index, float x, float y, float z)
 
virtual void Get_Vertex (int index, float &x, float &y, float &z)
 
void Translate_Vertices (const Vector3 &offset)
 
virtual void Change_Vertex_Color (int index, const Vector4 &color, int color_array_index)
 
void Set_Dirty_Bounds (void)
 
void Clear_Dirty_Bounds (void)
 
void Set_Dirty_Planes (void)
 
void Clear_Dirty_Planes (void)
 
void Set_Dirty_Vertex_Normals (void)
 
void Clear_Dirty_Vertex_Normals (void)
 
void Disable_Sort (void)
 
void Enable_Sort (void)
 
bool Sort_Enabled (void)
 
void Disable_Bounding_Box (void)
 
void Enable_Bounding_Box (void)
 
bool Test_Bounding_Box (void)
 
void Disable_Bounding_Sphere (void)
 
void Enable_Bounding_Sphere (void)
 
bool Test_Bounding_Sphere (void)
 
void Set_Dirty (void)
 
DynamicMeshModelPeek_Model (void)
 
- Public Member Functions inherited from RenderObjClass
 RenderObjClass (void)
 
 RenderObjClass (const RenderObjClass &src)
 
RenderObjClassoperator= (const RenderObjClass &)
 
virtual ~RenderObjClass (void)
 
virtual const char * Get_Name (void) const
 
virtual void Set_Name (const char *name)
 
virtual const char * Get_Base_Model_Name (void) const
 
virtual void Set_Base_Model_Name (const char *name)
 
virtual void Special_Render (SpecialRenderInfoClass &rinfo)
 
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 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 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 Create_Decal (DecalGeneratorClass *generator)
 
virtual void Delete_Decal (uint32 decal_id)
 
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 Scale (float scale)
 
virtual void Scale (float scalex, float scaley, float scalez)
 
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)
 

Protected Types

enum  { TRI_MODE_STRIPS = 0 , TRI_MODE_FANS = 1 }
 
- 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
}
 

Protected Member Functions

void Switch_To_Multi_Vertex_Color (int color_array_index=0)
 
virtual bool Flip_Face (void)
 
- Protected Member Functions inherited from RenderObjClass
virtual void Add_Dependencies_To_List (DynamicVectorClass< StringClass > &file_list, bool textures_only=false)
 
virtual void Update_Cached_Bounding_Volumes (void) const
 
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

DynamicMeshModelModel
 
int VertexMaterialIdx [MAX_PASSES]
 
bool MultiVertexMaterial [MAX_PASSES]
 
int TextureIdx [MAX_PASSES]
 
bool MultiTexture [MAX_PASSES]
 
Vector4 CurVertexColor [MAX_COLOR_ARRAYS]
 
bool MultiVertexColor [MAX_COLOR_ARRAYS]
 
int PolyCount
 
int VertCount
 
int TriVertexCount
 
int FanVertex
 
int TriMode
 
char SortLevel
 
- 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
 

Additional Inherited Members

- 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 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
 

Detailed Description

Definition at line 136 of file dynamesh.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
MAX_COLOR_ARRAYS 
MAX_PASSES 

Definition at line 401 of file dynamesh.h.

◆ anonymous enum

anonymous enum
protected
Enumerator
TRI_MODE_STRIPS 
TRI_MODE_FANS 

Definition at line 442 of file dynamesh.h.

Constructor & Destructor Documentation

◆ DynamicMeshClass() [1/3]

DynamicMeshClass::DynamicMeshClass ( int max_poly,
int max_vert )

Definition at line 521 of file dynamesh.cpp.

◆ DynamicMeshClass() [2/3]

DynamicMeshClass::DynamicMeshClass ( int max_poly,
int max_vert,
MaterialInfoClass * mat_info )

Definition at line 547 of file dynamesh.cpp.

◆ DynamicMeshClass() [3/3]

DynamicMeshClass::DynamicMeshClass ( const DynamicMeshClass & src)

Definition at line 573 of file dynamesh.cpp.

◆ ~DynamicMeshClass()

DynamicMeshClass::~DynamicMeshClass ( void )
virtual

Definition at line 619 of file dynamesh.cpp.

Member Function Documentation

◆ Begin_Tri_Fan()

void DynamicMeshClass::Begin_Tri_Fan ( void )
inline

Definition at line 241 of file dynamesh.h.

◆ Begin_Tri_Strip()

void DynamicMeshClass::Begin_Tri_Strip ( void )
inline

Definition at line 240 of file dynamesh.h.

◆ Begin_Vertex()

void DynamicMeshClass::Begin_Vertex ( void )
inline

Definition at line 244 of file dynamesh.h.

◆ Change_Vertex_Color()

virtual void DynamicMeshClass::Change_Vertex_Color ( int index,
const Vector4 & color,
int color_array_index )
inlinevirtual

Definition at line 358 of file dynamesh.h.

◆ Class_ID()

virtual int DynamicMeshClass::Class_ID ( void ) const
inlinevirtual

Reimplemented from RenderObjClass.

Reimplemented in Bitmap2DObjClass, DynamicScreenMeshClass, and TextDrawClass.

Definition at line 148 of file dynamesh.h.

◆ Clear_Dirty_Bounds()

void DynamicMeshClass::Clear_Dirty_Bounds ( void )
inline

Definition at line 379 of file dynamesh.h.

◆ Clear_Dirty_Planes()

void DynamicMeshClass::Clear_Dirty_Planes ( void )
inline

Definition at line 381 of file dynamesh.h.

◆ Clear_Dirty_Vertex_Normals()

void DynamicMeshClass::Clear_Dirty_Vertex_Normals ( void )
inline

Definition at line 383 of file dynamesh.h.

◆ Clone()

RenderObjClass * DynamicMeshClass::Clone ( void ) const
virtual

Implements RenderObjClass.

Reimplemented in Bitmap2DObjClass, and DynamicScreenMeshClass.

Definition at line 624 of file dynamesh.cpp.

◆ Color() [1/3]

void DynamicMeshClass::Color ( const Vector4 & v,
int color_array_index = 0 )
inline

Definition at line 293 of file dynamesh.h.

◆ Color() [2/3]

void DynamicMeshClass::Color ( float r,
float g,
float b,
float a,
int color_array_index = 0 )
inline

Definition at line 281 of file dynamesh.h.

◆ Color() [3/3]

void DynamicMeshClass::Color ( unsigned v,
int color_array_index = 0 )
inline

Definition at line 294 of file dynamesh.h.

◆ Disable_Bounding_Box()

void DynamicMeshClass::Disable_Bounding_Box ( void )
inline

Definition at line 390 of file dynamesh.h.

◆ Disable_Bounding_Sphere()

void DynamicMeshClass::Disable_Bounding_Sphere ( void )
inline

Definition at line 394 of file dynamesh.h.

◆ Disable_Sort()

void DynamicMeshClass::Disable_Sort ( void )
inline

Definition at line 386 of file dynamesh.h.

◆ Enable_Bounding_Box()

void DynamicMeshClass::Enable_Bounding_Box ( void )
inline

Definition at line 391 of file dynamesh.h.

◆ Enable_Bounding_Sphere()

void DynamicMeshClass::Enable_Bounding_Sphere ( void )
inline

Definition at line 395 of file dynamesh.h.

◆ Enable_Sort()

void DynamicMeshClass::Enable_Sort ( void )
inline

Definition at line 387 of file dynamesh.h.

◆ End_Tri_Fan()

void DynamicMeshClass::End_Tri_Fan ( void )
inline

Definition at line 345 of file dynamesh.h.

◆ End_Tri_Strip()

void DynamicMeshClass::End_Tri_Strip ( void )
inline

Definition at line 340 of file dynamesh.h.

◆ End_Vertex()

bool DynamicMeshClass::End_Vertex ( void )

Definition at line 440 of file dynamesh.cpp.

◆ Flip_Face()

virtual bool DynamicMeshClass::Flip_Face ( void )
inlineprotectedvirtual

Reimplemented in DynamicScreenMeshClass.

Definition at line 416 of file dynamesh.h.

◆ Get_Color()

unsigned DynamicMeshClass::Get_Color ( int index,
int color_array_index = 0 )
inline

Definition at line 304 of file dynamesh.h.

◆ Get_Location()

Vector3 & DynamicMeshClass::Get_Location ( int index)
inline

Definition at line 262 of file dynamesh.h.

◆ Get_Material_Info()

virtual MaterialInfoClass * DynamicMeshClass::Get_Material_Info ( void )
inlinevirtual

Reimplemented from RenderObjClass.

Definition at line 152 of file dynamesh.h.

◆ Get_Normal()

Vector3 & DynamicMeshClass::Get_Normal ( int index)
inline

Definition at line 279 of file dynamesh.h.

◆ Get_Num_Polys()

virtual int DynamicMeshClass::Get_Num_Polys ( void ) const
inlinevirtual

Reimplemented from RenderObjClass.

Definition at line 157 of file dynamesh.h.

◆ Get_Num_Vertices()

virtual int DynamicMeshClass::Get_Num_Vertices ( void ) const
inlinevirtual

Definition at line 160 of file dynamesh.h.

◆ Get_Obj_Space_Bounding_Box()

void DynamicMeshClass::Get_Obj_Space_Bounding_Box ( AABoxClass & box) const
inlinevirtual

Reimplemented from RenderObjClass.

Definition at line 470 of file dynamesh.h.

◆ Get_Obj_Space_Bounding_Sphere()

void DynamicMeshClass::Get_Obj_Space_Bounding_Sphere ( SphereClass & sphere) const
inlinevirtual

Reimplemented from RenderObjClass.

Definition at line 462 of file dynamesh.h.

◆ Get_Pass_Count()

int DynamicMeshClass::Get_Pass_Count ( )
inline

Definition at line 176 of file dynamesh.h.

◆ Get_Sort_Level()

virtual int DynamicMeshClass::Get_Sort_Level ( void ) const
inlinevirtual

Reimplemented from RenderObjClass.

Definition at line 163 of file dynamesh.h.

◆ Get_UV()

Vector2 & DynamicMeshClass::Get_UV ( int index,
int uv_array_index = 0 )
inline

Definition at line 317 of file dynamesh.h.

◆ Get_Vertex()

void DynamicMeshClass::Get_Vertex ( int index,
float & x,
float & y,
float & z )
virtual

Definition at line 654 of file dynamesh.cpp.

◆ Location()

void DynamicMeshClass::Location ( float x,
float y,
float z )
virtual

Reimplemented in DynamicScreenMeshClass.

Definition at line 629 of file dynamesh.cpp.

◆ Location_Inline() [1/2]

void DynamicMeshClass::Location_Inline ( float x,
float y,
float z )
inline

Definition at line 249 of file dynamesh.h.

◆ Location_Inline() [2/2]

void DynamicMeshClass::Location_Inline ( Vector3 & v)
inline

Definition at line 258 of file dynamesh.h.

◆ Move_Vertex()

void DynamicMeshClass::Move_Vertex ( int index,
float x,
float y,
float z )
virtual

Reimplemented in DynamicScreenMeshClass.

Definition at line 642 of file dynamesh.cpp.

◆ Normal() [1/2]

void DynamicMeshClass::Normal ( float x,
float y,
float z )
inline

Definition at line 266 of file dynamesh.h.

◆ Normal() [2/2]

void DynamicMeshClass::Normal ( Vector3 & v)
inline

Definition at line 275 of file dynamesh.h.

◆ Peek_Material_Info()

virtual MaterialInfoClass * DynamicMeshClass::Peek_Material_Info ( void )
inlinevirtual

Definition at line 151 of file dynamesh.h.

◆ Peek_Model()

DynamicMeshModel * DynamicMeshClass::Peek_Model ( void )
inline

Definition at line 409 of file dynamesh.h.

◆ Render()

void DynamicMeshClass::Render ( RenderInfoClass & rinfo)
virtual

Implements RenderObjClass.

Definition at line 415 of file dynamesh.cpp.

◆ Reset()

virtual void DynamicMeshClass::Reset ( void )
inlinevirtual

Reimplemented in DynamicScreenMeshClass, and TextDrawClass.

Definition at line 220 of file dynamesh.h.

◆ Reset_Flags()

void DynamicMeshClass::Reset_Flags ( )
inline

Definition at line 204 of file dynamesh.h.

◆ Reset_Mesh_Counters()

void DynamicMeshClass::Reset_Mesh_Counters ( )
inline

Definition at line 210 of file dynamesh.h.

◆ Reset_Native_Mesh()

void DynamicMeshClass::Reset_Native_Mesh ( )
inline

Definition at line 207 of file dynamesh.h.

◆ Resize()

void DynamicMeshClass::Resize ( int max_polys,
int max_verts )

Definition at line 603 of file dynamesh.cpp.

◆ Set_Dirty()

void DynamicMeshClass::Set_Dirty ( void )
inline

Definition at line 399 of file dynamesh.h.

◆ Set_Dirty_Bounds()

void DynamicMeshClass::Set_Dirty_Bounds ( void )
inline

Definition at line 378 of file dynamesh.h.

◆ Set_Dirty_Planes()

void DynamicMeshClass::Set_Dirty_Planes ( void )
inline

Definition at line 380 of file dynamesh.h.

◆ Set_Dirty_Vertex_Normals()

void DynamicMeshClass::Set_Dirty_Vertex_Normals ( void )
inline

Definition at line 382 of file dynamesh.h.

◆ Set_Material_Info()

virtual void DynamicMeshClass::Set_Material_Info ( MaterialInfoClass * mat_info)
inlinevirtual

Definition at line 153 of file dynamesh.h.

◆ Set_Pass_Count()

void DynamicMeshClass::Set_Pass_Count ( int passes)
inline

Definition at line 175 of file dynamesh.h.

◆ Set_Polygon_Info()

void DynamicMeshClass::Set_Polygon_Info ( const PolygonInfoClass & polyInfo,
bool dont_search_texture = false,
bool dont_search_vertex_material = false,
int pass = 0 )
inline

Definition at line 186 of file dynamesh.h.

◆ Set_Shader()

int DynamicMeshClass::Set_Shader ( const ShaderClass & shader,
int pass = 0 )
inline

Definition at line 183 of file dynamesh.h.

◆ Set_Sort_Level()

virtual void DynamicMeshClass::Set_Sort_Level ( int level)
inlinevirtual

Reimplemented from RenderObjClass.

Definition at line 164 of file dynamesh.h.

◆ Set_Texture() [1/2]

int DynamicMeshClass::Set_Texture ( int idx,
int pass = 0 )

Definition at line 743 of file dynamesh.cpp.

◆ Set_Texture() [2/2]

int DynamicMeshClass::Set_Texture ( TextureClass * texture,
bool dont_search = false,
int pass = 0 )

Definition at line 755 of file dynamesh.cpp.

◆ Set_Vertex_Color() [1/2]

int DynamicMeshClass::Set_Vertex_Color ( const Vector3 & color,
int color_array_index = 0 )
inline

Definition at line 516 of file dynamesh.h.

◆ Set_Vertex_Color() [2/2]

int DynamicMeshClass::Set_Vertex_Color ( const Vector4 & color,
int color_array_index = 0 )
inline

Definition at line 505 of file dynamesh.h.

◆ Set_Vertex_Material() [1/2]

int DynamicMeshClass::Set_Vertex_Material ( int idx,
int pass = 0 )

Definition at line 681 of file dynamesh.cpp.

◆ Set_Vertex_Material() [2/2]

int DynamicMeshClass::Set_Vertex_Material ( VertexMaterialClass * material,
bool dont_search = false,
int pass = 0 )

Definition at line 694 of file dynamesh.cpp.

◆ Sort_Enabled()

bool DynamicMeshClass::Sort_Enabled ( void )
inline

Definition at line 388 of file dynamesh.h.

◆ Switch_To_Multi_Vertex_Color()

void DynamicMeshClass::Switch_To_Multi_Vertex_Color ( int color_array_index = 0)
inlineprotected

Definition at line 481 of file dynamesh.h.

◆ Test_Bounding_Box()

bool DynamicMeshClass::Test_Bounding_Box ( void )
inline

Definition at line 392 of file dynamesh.h.

◆ Test_Bounding_Sphere()

bool DynamicMeshClass::Test_Bounding_Sphere ( void )
inline

Definition at line 396 of file dynamesh.h.

◆ Translate_Vertices()

void DynamicMeshClass::Translate_Vertices ( const Vector3 & offset)

Definition at line 667 of file dynamesh.cpp.

◆ UV() [1/2]

void DynamicMeshClass::UV ( float u,
float v,
int uv_array_index = 0 )
inline

Definition at line 306 of file dynamesh.h.

◆ UV() [2/2]

void DynamicMeshClass::UV ( Vector2 & v,
int uv_array_index = 0 )
inline

Definition at line 314 of file dynamesh.h.

◆ Vertex() [1/2]

bool DynamicMeshClass::Vertex ( float x,
float y,
float z,
float u,
float v )
inline

Definition at line 325 of file dynamesh.h.

◆ Vertex() [2/2]

bool DynamicMeshClass::Vertex ( Vector2 v)
inline

Definition at line 333 of file dynamesh.h.

Member Data Documentation

◆ CurVertexColor

Vector4 DynamicMeshClass::CurVertexColor[MAX_COLOR_ARRAYS]
protected

Definition at line 426 of file dynamesh.h.

◆ FanVertex

int DynamicMeshClass::FanVertex
protected

Definition at line 439 of file dynamesh.h.

◆ Model

DynamicMeshModel* DynamicMeshClass::Model
protected

Definition at line 419 of file dynamesh.h.

◆ MultiTexture

bool DynamicMeshClass::MultiTexture[MAX_PASSES]
protected

Definition at line 424 of file dynamesh.h.

◆ MultiVertexColor

bool DynamicMeshClass::MultiVertexColor[MAX_COLOR_ARRAYS]
protected

Definition at line 427 of file dynamesh.h.

◆ MultiVertexMaterial

bool DynamicMeshClass::MultiVertexMaterial[MAX_PASSES]
protected

Definition at line 422 of file dynamesh.h.

◆ PolyCount

int DynamicMeshClass::PolyCount
protected

Definition at line 430 of file dynamesh.h.

◆ SortLevel

char DynamicMeshClass::SortLevel
protected

Definition at line 446 of file dynamesh.h.

◆ TextureIdx

int DynamicMeshClass::TextureIdx[MAX_PASSES]
protected

Definition at line 423 of file dynamesh.h.

◆ TriMode

int DynamicMeshClass::TriMode
protected

Definition at line 443 of file dynamesh.h.

◆ TriVertexCount

int DynamicMeshClass::TriVertexCount
protected

Definition at line 436 of file dynamesh.h.

◆ VertCount

int DynamicMeshClass::VertCount
protected

Definition at line 433 of file dynamesh.h.

◆ VertexMaterialIdx

int DynamicMeshClass::VertexMaterialIdx[MAX_PASSES]
protected

Definition at line 421 of file dynamesh.h.


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