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

#include <sphereobj.h>

Inherits RenderObjClass.

Public Types

enum  SphereFlags { USE_ALPHA_VECTOR = 0x00000001 , USE_CAMERA_ALIGN = 0x00000002 , USE_INVERSE_ALPHA = 0x00000004 , USE_ANIMATION_LOOP = 0x00000008 }
 
- 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

 SphereRenderObjClass (void)
 
 SphereRenderObjClass (const W3dSphereStruct &def)
 
 SphereRenderObjClass (const SphereRenderObjClass &src)
 
SphereRenderObjClassoperator= (const SphereRenderObjClass &)
 
 ~SphereRenderObjClass (void)
 
virtual RenderObjClassClone (void) const
 
virtual int Class_ID (void) const
 
virtual void Render (RenderInfoClass &rinfo)
 
virtual void Special_Render (SpecialRenderInfoClass &rinfo)
 
virtual void Set_Transform (const Matrix3D &m)
 
virtual void Set_Position (const Vector3 &v)
 
virtual void Get_Obj_Space_Bounding_Sphere (SphereClass &sphere) const
 
virtual void Get_Obj_Space_Bounding_Box (AABoxClass &aabox) const
 
virtual void Prepare_LOD (CameraClass &camera)
 
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 void Scale (float scale)
 
virtual void Scale (float scalex, float scaley, float scalez)
 
virtual void Set_Hidden (int onoff)
 
virtual void Set_Visible (int onoff)
 
virtual void Set_Animation_Hidden (int onoff)
 
virtual void Set_Force_Visible (int onoff)
 
const AABoxClassGet_Box (void)
 
virtual int Get_Num_Polys (void) const
 
virtual const char * Get_Name (void) const
 
virtual void Set_Name (const char *name)
 
unsigned int Get_Flags (void)
 
void Set_Flags (unsigned int flags)
 
void Set_Flag (unsigned int flag, bool onoff)
 
bool Is_Animating (void)
 
void Start_Animating (void)
 
void Stop_Animating (void)
 
void Set_Color (const Vector3 &color)
 
void Set_Alpha (float alpha)
 
void Set_Scale (const Vector3 &scale)
 
void Set_Vector (const AlphaVectorStruct &v)
 
const Vector3Get_Color (void) const
 
float Get_Alpha (void) const
 
const Vector3Get_Scale (void) const
 
const AlphaVectorStructGet_Vector (void) const
 
Vector3 Get_Default_Color (void) const
 
float Get_Default_Alpha (void) const
 
Vector3 Get_Default_Scale (void) const
 
AlphaVectorStruct Get_Default_Vector (void) const
 
void Set_Extent (const Vector3 &extent)
 
void Set_Local_Center_Extent (const Vector3 &center, const Vector3 &extent)
 
void Set_Local_Min_Max (const Vector3 &min, const Vector3 &max)
 
void Set_Texture (TextureClass *tf)
 
TextureClassPeek_Texture (void)
 
ShaderClassGet_Shader (void)
 
void Set_Shader (ShaderClass &shader)
 
float Get_Animation_Duration (void) const
 
void Set_Animation_Duration (float time)
 
void Restart_Animation (void)
 
SphereColorChannelClassGet_Color_Channel (void)
 
const SphereColorChannelClassPeek_Color_Channel (void)
 
SphereAlphaChannelClassGet_Alpha_Channel (void)
 
const SphereAlphaChannelClassPeek_Alpha_Channel (void)
 
SphereScaleChannelClassGet_Scale_Channel (void)
 
const SphereScaleChannelClassPeek_Scale_Channel (void)
 
SphereVectorChannelClassGet_Vector_Channel (void)
 
const SphereVectorChannelClassPeek_Vector_Channel (void)
 
void Set_Color_Channel (const SphereColorChannelClass &data)
 
void Set_Alpha_Channel (const SphereAlphaChannelClass &data)
 
void Set_Scale_Channel (const SphereScaleChannelClass &data)
 
void Set_Vector_Channel (const SphereVectorChannelClass &data)
 
- 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
 
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 Recalculate_Static_LOD_Factors (void)
 
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 MaterialInfoClassGet_Material_Info (void)
 
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 Get_Sort_Level (void) const
 
virtual void Set_Sort_Level (int level)
 
virtual int Is_Really_Visible (void)
 
virtual int Is_Not_Hidden_At_All (void)
 
virtual int Is_Visible (void) const
 
virtual int Is_Hidden (void) const
 
virtual int Is_Animation_Hidden (void) const
 
virtual int Is_Force_Visible (void) const
 
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 Member Functions

virtual void update_cached_box (void)
 
virtual void Update_Cached_Bounding_Volumes (void) const
 
void Update_On_Visibilty (void)
 
void Init_Material (void)
 
void animate (void)
 
void calculate_value_array (float screen_area, float *values) const
 
void update_mesh_data (const Vector3 &center, const Vector3 &extent)
 
void render_sphere ()
 
void vis_render_sphere (SpecialRenderInfoClass &rinfo, const Vector3 &center, const Vector3 &extent)
 
- Protected Member Functions inherited from RenderObjClass
virtual void Add_Dependencies_To_List (DynamicVectorClass< StringClass > &file_list, bool textures_only=false)
 
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)
 

Static Protected Member Functions

static void Generate_Shared_Mesh_Arrays (const AlphaVectorStruct &alphavector)
 

Protected Attributes

float anim_time
 
float AnimDuration
 
bool IsAnimating
 
float LODBias
 
int CurrentLOD
 
float Value [SPHERE_NUM_LOD+2]
 
SphereColorChannelClass ColorChannel
 
SphereAlphaChannelClass AlphaChannel
 
SphereScaleChannelClass ScaleChannel
 
SphereVectorChannelClass VectorChannel
 
char Name [2 *W3D_NAME_LEN]
 
Vector3 ObjSpaceCenter
 
Vector3 ObjSpaceExtent
 
Vector3 CurrentColor
 
float CurrentAlpha
 
Vector3 CurrentScale
 
AlphaVectorStruct CurrentVector
 
Quaternion Orientation
 
unsigned int Flags
 
VertexMaterialClassSphereMaterial
 
ShaderClass SphereShader
 
TextureClassSphereTexture
 
AABoxClass CachedBox
 
- 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 SpherePrototypeClass
 

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

Definition at line 229 of file sphereobj.h.

Member Enumeration Documentation

◆ SphereFlags

Enumerator
USE_ALPHA_VECTOR 
USE_CAMERA_ALIGN 
USE_INVERSE_ALPHA 
USE_ANIMATION_LOOP 

Definition at line 235 of file sphereobj.h.

Constructor & Destructor Documentation

◆ SphereRenderObjClass() [1/3]

SphereRenderObjClass::SphereRenderObjClass ( void )

Definition at line 116 of file sphereobj.cpp.

◆ SphereRenderObjClass() [2/3]

SphereRenderObjClass::SphereRenderObjClass ( const W3dSphereStruct & def)

Definition at line 158 of file sphereobj.cpp.

◆ SphereRenderObjClass() [3/3]

SphereRenderObjClass::SphereRenderObjClass ( const SphereRenderObjClass & src)

Definition at line 208 of file sphereobj.cpp.

◆ ~SphereRenderObjClass()

SphereRenderObjClass::~SphereRenderObjClass ( void )

Definition at line 236 of file sphereobj.cpp.

Member Function Documentation

◆ animate()

void SphereRenderObjClass::animate ( void )
protected

Definition at line 1098 of file sphereobj.cpp.

◆ Calculate_Cost_Value_Arrays()

int SphereRenderObjClass::Calculate_Cost_Value_Arrays ( float screen_area,
float * values,
float * costs ) const
virtual

Reimplemented from RenderObjClass.

Definition at line 856 of file sphereobj.cpp.

◆ calculate_value_array()

void SphereRenderObjClass::calculate_value_array ( float screen_area,
float * values ) const
protected

Definition at line 324 of file sphereobj.cpp.

◆ Class_ID()

int SphereRenderObjClass::Class_ID ( void ) const
virtual

Reimplemented from RenderObjClass.

Definition at line 583 of file sphereobj.cpp.

◆ Clone()

RenderObjClass * SphereRenderObjClass::Clone ( void ) const
virtual

Implements RenderObjClass.

Definition at line 565 of file sphereobj.cpp.

◆ Decrement_LOD()

void SphereRenderObjClass::Decrement_LOD ( void )
virtual

Reimplemented from RenderObjClass.

Definition at line 821 of file sphereobj.cpp.

◆ Generate_Shared_Mesh_Arrays()

void SphereRenderObjClass::Generate_Shared_Mesh_Arrays ( const AlphaVectorStruct & alphavector)
staticprotected

Definition at line 294 of file sphereobj.cpp.

◆ Get_Alpha()

float SphereRenderObjClass::Get_Alpha ( void ) const
inline

Definition at line 302 of file sphereobj.h.

◆ Get_Alpha_Channel()

SphereAlphaChannelClass & SphereRenderObjClass::Get_Alpha_Channel ( void )
inline

Definition at line 331 of file sphereobj.h.

◆ Get_Animation_Duration()

float SphereRenderObjClass::Get_Animation_Duration ( void ) const
inline

Definition at line 323 of file sphereobj.h.

◆ Get_Box()

const AABoxClass & SphereRenderObjClass::Get_Box ( void )
inline

Definition at line 423 of file sphereobj.h.

◆ Get_Color()

const Vector3 & SphereRenderObjClass::Get_Color ( void ) const
inline

Definition at line 301 of file sphereobj.h.

◆ Get_Color_Channel()

SphereColorChannelClass & SphereRenderObjClass::Get_Color_Channel ( void )
inline

Definition at line 328 of file sphereobj.h.

◆ Get_Cost()

float SphereRenderObjClass::Get_Cost ( void ) const
virtual

Reimplemented from RenderObjClass.

Definition at line 826 of file sphereobj.cpp.

◆ Get_Default_Alpha()

float SphereRenderObjClass::Get_Default_Alpha ( void ) const

Definition at line 994 of file sphereobj.cpp.

◆ Get_Default_Color()

Vector3 SphereRenderObjClass::Get_Default_Color ( void ) const

Definition at line 968 of file sphereobj.cpp.

◆ Get_Default_Scale()

Vector3 SphereRenderObjClass::Get_Default_Scale ( void ) const

Definition at line 1020 of file sphereobj.cpp.

◆ Get_Default_Vector()

AlphaVectorStruct SphereRenderObjClass::Get_Default_Vector ( void ) const

Definition at line 1046 of file sphereobj.cpp.

◆ Get_Flags()

unsigned int SphereRenderObjClass::Get_Flags ( void )
inline

Definition at line 286 of file sphereobj.h.

◆ Get_LOD_Count()

int SphereRenderObjClass::Get_LOD_Count ( void ) const
virtual

Reimplemented from RenderObjClass.

Definition at line 851 of file sphereobj.cpp.

◆ Get_LOD_Level()

int SphereRenderObjClass::Get_LOD_Level ( void ) const
virtual

Reimplemented from RenderObjClass.

Definition at line 846 of file sphereobj.cpp.

◆ Get_Name()

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

Reimplemented from RenderObjClass.

Definition at line 419 of file sphereobj.cpp.

◆ Get_Num_Polys()

int SphereRenderObjClass::Get_Num_Polys ( void ) const
virtual

Reimplemented from RenderObjClass.

Definition at line 383 of file sphereobj.cpp.

◆ Get_Obj_Space_Bounding_Box()

void SphereRenderObjClass::Get_Obj_Space_Bounding_Box ( AABoxClass & aabox) const
virtual

Reimplemented from RenderObjClass.

Definition at line 799 of file sphereobj.cpp.

◆ Get_Obj_Space_Bounding_Sphere()

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

Reimplemented from RenderObjClass.

Definition at line 781 of file sphereobj.cpp.

◆ Get_Post_Increment_Value()

float SphereRenderObjClass::Get_Post_Increment_Value ( void ) const
virtual

Reimplemented from RenderObjClass.

Definition at line 836 of file sphereobj.cpp.

◆ Get_Scale()

const Vector3 & SphereRenderObjClass::Get_Scale ( void ) const
inline

Definition at line 303 of file sphereobj.h.

◆ Get_Scale_Channel()

SphereScaleChannelClass & SphereRenderObjClass::Get_Scale_Channel ( void )
inline

Definition at line 334 of file sphereobj.h.

◆ Get_Shader()

ShaderClass & SphereRenderObjClass::Get_Shader ( void )
inline

Definition at line 319 of file sphereobj.h.

◆ Get_Value()

float SphereRenderObjClass::Get_Value ( void ) const
virtual

Reimplemented from RenderObjClass.

Definition at line 831 of file sphereobj.cpp.

◆ Get_Vector()

const AlphaVectorStruct & SphereRenderObjClass::Get_Vector ( void ) const
inline

Definition at line 304 of file sphereobj.h.

◆ Get_Vector_Channel()

SphereVectorChannelClass & SphereRenderObjClass::Get_Vector_Channel ( void )
inline

Definition at line 337 of file sphereobj.h.

◆ Increment_LOD()

void SphereRenderObjClass::Increment_LOD ( void )
virtual

Reimplemented from RenderObjClass.

Definition at line 816 of file sphereobj.cpp.

◆ Init_Material()

void SphereRenderObjClass::Init_Material ( void )
protected

Definition at line 348 of file sphereobj.cpp.

◆ Is_Animating()

bool SphereRenderObjClass::Is_Animating ( void )
inline

Definition at line 291 of file sphereobj.h.

◆ operator=()

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

Definition at line 253 of file sphereobj.cpp.

◆ Peek_Alpha_Channel()

const SphereAlphaChannelClass & SphereRenderObjClass::Peek_Alpha_Channel ( void )
inline

Definition at line 332 of file sphereobj.h.

◆ Peek_Color_Channel()

const SphereColorChannelClass & SphereRenderObjClass::Peek_Color_Channel ( void )
inline

Definition at line 329 of file sphereobj.h.

◆ Peek_Scale_Channel()

const SphereScaleChannelClass & SphereRenderObjClass::Peek_Scale_Channel ( void )
inline

Definition at line 335 of file sphereobj.h.

◆ Peek_Texture()

TextureClass * SphereRenderObjClass::Peek_Texture ( void )
inline

Definition at line 318 of file sphereobj.h.

◆ Peek_Vector_Channel()

const SphereVectorChannelClass & SphereRenderObjClass::Peek_Vector_Channel ( void )
inline

Definition at line 338 of file sphereobj.h.

◆ Prepare_LOD()

void SphereRenderObjClass::Prepare_LOD ( CameraClass & camera)
virtual

Reimplemented from RenderObjClass.

Definition at line 805 of file sphereobj.cpp.

◆ Render()

void SphereRenderObjClass::Render ( RenderInfoClass & rinfo)
virtual

Implements RenderObjClass.

Definition at line 601 of file sphereobj.cpp.

◆ render_sphere()

void SphereRenderObjClass::render_sphere ( )
protected

Definition at line 458 of file sphereobj.cpp.

◆ Restart_Animation()

void SphereRenderObjClass::Restart_Animation ( void )
inline

Definition at line 325 of file sphereobj.h.

◆ Scale() [1/2]

void SphereRenderObjClass::Scale ( float scale)
virtual

Reimplemented from RenderObjClass.

Definition at line 880 of file sphereobj.cpp.

◆ Scale() [2/2]

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

Reimplemented from RenderObjClass.

Definition at line 909 of file sphereobj.cpp.

◆ Set_Alpha()

void SphereRenderObjClass::Set_Alpha ( float alpha)
inline

Definition at line 297 of file sphereobj.h.

◆ Set_Alpha_Channel()

void SphereRenderObjClass::Set_Alpha_Channel ( const SphereAlphaChannelClass & data)
inline

Definition at line 341 of file sphereobj.h.

◆ Set_Animation_Duration()

void SphereRenderObjClass::Set_Animation_Duration ( float time)
inline

Definition at line 324 of file sphereobj.h.

◆ Set_Animation_Hidden()

virtual void SphereRenderObjClass::Set_Animation_Hidden ( int onoff)
inlinevirtual

Reimplemented from RenderObjClass.

Definition at line 276 of file sphereobj.h.

◆ Set_Color()

void SphereRenderObjClass::Set_Color ( const Vector3 & color)
inline

Definition at line 296 of file sphereobj.h.

◆ Set_Color_Channel()

void SphereRenderObjClass::Set_Color_Channel ( const SphereColorChannelClass & data)
inline

Definition at line 340 of file sphereobj.h.

◆ Set_Extent()

void SphereRenderObjClass::Set_Extent ( const Vector3 & extent)
inline

Definition at line 401 of file sphereobj.h.

◆ Set_Flag()

void SphereRenderObjClass::Set_Flag ( unsigned int flag,
bool onoff )
inline

Definition at line 288 of file sphereobj.h.

◆ Set_Flags()

void SphereRenderObjClass::Set_Flags ( unsigned int flags)
inline

Definition at line 287 of file sphereobj.h.

◆ Set_Force_Visible()

virtual void SphereRenderObjClass::Set_Force_Visible ( int onoff)
inlinevirtual

Reimplemented from RenderObjClass.

Definition at line 277 of file sphereobj.h.

◆ Set_Hidden()

virtual void SphereRenderObjClass::Set_Hidden ( int onoff)
inlinevirtual

Reimplemented from RenderObjClass.

Definition at line 274 of file sphereobj.h.

◆ Set_Local_Center_Extent()

void SphereRenderObjClass::Set_Local_Center_Extent ( const Vector3 & center,
const Vector3 & extent )
inline

Definition at line 408 of file sphereobj.h.

◆ Set_Local_Min_Max()

void SphereRenderObjClass::Set_Local_Min_Max ( const Vector3 & min,
const Vector3 & max )
inline

Definition at line 415 of file sphereobj.h.

◆ Set_LOD_Bias()

virtual void SphereRenderObjClass::Set_LOD_Bias ( float bias)
inlinevirtual

Reimplemented from RenderObjClass.

Definition at line 269 of file sphereobj.h.

◆ Set_LOD_Level()

void SphereRenderObjClass::Set_LOD_Level ( int lod)
virtual

Reimplemented from RenderObjClass.

Definition at line 841 of file sphereobj.cpp.

◆ Set_Name()

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

Reimplemented from RenderObjClass.

Definition at line 437 of file sphereobj.cpp.

◆ Set_Position()

void SphereRenderObjClass::Set_Position ( const Vector3 & v)
virtual

Reimplemented from RenderObjClass.

Definition at line 743 of file sphereobj.cpp.

◆ Set_Scale()

void SphereRenderObjClass::Set_Scale ( const Vector3 & scale)
inline

Definition at line 298 of file sphereobj.h.

◆ Set_Scale_Channel()

void SphereRenderObjClass::Set_Scale_Channel ( const SphereScaleChannelClass & data)
inline

Definition at line 342 of file sphereobj.h.

◆ Set_Shader()

void SphereRenderObjClass::Set_Shader ( ShaderClass & shader)
inline

Definition at line 320 of file sphereobj.h.

◆ Set_Texture()

void SphereRenderObjClass::Set_Texture ( TextureClass * tf)

Definition at line 401 of file sphereobj.cpp.

◆ Set_Transform()

void SphereRenderObjClass::Set_Transform ( const Matrix3D & m)
virtual

Reimplemented from RenderObjClass.

Definition at line 724 of file sphereobj.cpp.

◆ Set_Vector()

void SphereRenderObjClass::Set_Vector ( const AlphaVectorStruct & v)
inline

Definition at line 299 of file sphereobj.h.

◆ Set_Vector_Channel()

void SphereRenderObjClass::Set_Vector_Channel ( const SphereVectorChannelClass & data)
inline

Definition at line 343 of file sphereobj.h.

◆ Set_Visible()

virtual void SphereRenderObjClass::Set_Visible ( int onoff)
inlinevirtual

Reimplemented from RenderObjClass.

Definition at line 275 of file sphereobj.h.

◆ Special_Render()

void SphereRenderObjClass::Special_Render ( SpecialRenderInfoClass & rinfo)
virtual

Reimplemented from RenderObjClass.

Definition at line 699 of file sphereobj.cpp.

◆ Start_Animating()

void SphereRenderObjClass::Start_Animating ( void )
inline

Definition at line 292 of file sphereobj.h.

◆ Stop_Animating()

void SphereRenderObjClass::Stop_Animating ( void )
inline

Definition at line 293 of file sphereobj.h.

◆ Update_Cached_Bounding_Volumes()

void SphereRenderObjClass::Update_Cached_Bounding_Volumes ( void ) const
protectedvirtual

Reimplemented from RenderObjClass.

Definition at line 943 of file sphereobj.cpp.

◆ update_cached_box()

void SphereRenderObjClass::update_cached_box ( void )
protectedvirtual

Definition at line 762 of file sphereobj.cpp.

◆ update_mesh_data()

void SphereRenderObjClass::update_mesh_data ( const Vector3 & center,
const Vector3 & extent )
protected

◆ Update_On_Visibilty()

void SphereRenderObjClass::Update_On_Visibilty ( void )
protected

Definition at line 1072 of file sphereobj.cpp.

◆ vis_render_sphere()

void SphereRenderObjClass::vis_render_sphere ( SpecialRenderInfoClass & rinfo,
const Vector3 & center,
const Vector3 & extent )
protected

Definition at line 548 of file sphereobj.cpp.

Friends And Related Symbol Documentation

◆ SpherePrototypeClass

friend class SpherePrototypeClass
friend

Definition at line 398 of file sphereobj.h.

Member Data Documentation

◆ AlphaChannel

SphereAlphaChannelClass SphereRenderObjClass::AlphaChannel
protected

Definition at line 368 of file sphereobj.h.

◆ anim_time

float SphereRenderObjClass::anim_time
protected

Definition at line 357 of file sphereobj.h.

◆ AnimDuration

float SphereRenderObjClass::AnimDuration
protected

Definition at line 358 of file sphereobj.h.

◆ CachedBox

AABoxClass SphereRenderObjClass::CachedBox
protected

Definition at line 395 of file sphereobj.h.

◆ ColorChannel

SphereColorChannelClass SphereRenderObjClass::ColorChannel
protected

Definition at line 367 of file sphereobj.h.

◆ CurrentAlpha

float SphereRenderObjClass::CurrentAlpha
protected

Definition at line 382 of file sphereobj.h.

◆ CurrentColor

Vector3 SphereRenderObjClass::CurrentColor
protected

Definition at line 381 of file sphereobj.h.

◆ CurrentLOD

int SphereRenderObjClass::CurrentLOD
protected

Definition at line 364 of file sphereobj.h.

◆ CurrentScale

Vector3 SphereRenderObjClass::CurrentScale
protected

Definition at line 383 of file sphereobj.h.

◆ CurrentVector

AlphaVectorStruct SphereRenderObjClass::CurrentVector
protected

Definition at line 384 of file sphereobj.h.

◆ Flags

unsigned int SphereRenderObjClass::Flags
protected

Definition at line 389 of file sphereobj.h.

◆ IsAnimating

bool SphereRenderObjClass::IsAnimating
protected

Definition at line 359 of file sphereobj.h.

◆ LODBias

float SphereRenderObjClass::LODBias
protected

Definition at line 363 of file sphereobj.h.

◆ Name

char SphereRenderObjClass::Name[2 *W3D_NAME_LEN]
protected

Definition at line 376 of file sphereobj.h.

◆ ObjSpaceCenter

Vector3 SphereRenderObjClass::ObjSpaceCenter
protected

Definition at line 377 of file sphereobj.h.

◆ ObjSpaceExtent

Vector3 SphereRenderObjClass::ObjSpaceExtent
protected

Definition at line 378 of file sphereobj.h.

◆ Orientation

Quaternion SphereRenderObjClass::Orientation
protected

Definition at line 386 of file sphereobj.h.

◆ ScaleChannel

SphereScaleChannelClass SphereRenderObjClass::ScaleChannel
protected

Definition at line 369 of file sphereobj.h.

◆ SphereMaterial

VertexMaterialClass* SphereRenderObjClass::SphereMaterial
protected

Definition at line 391 of file sphereobj.h.

◆ SphereShader

ShaderClass SphereRenderObjClass::SphereShader
protected

Definition at line 392 of file sphereobj.h.

◆ SphereTexture

TextureClass* SphereRenderObjClass::SphereTexture
protected

Definition at line 393 of file sphereobj.h.

◆ Value

float SphereRenderObjClass::Value[SPHERE_NUM_LOD+2]
protected

Definition at line 365 of file sphereobj.h.

◆ VectorChannel

SphereVectorChannelClass SphereRenderObjClass::VectorChannel
protected

Definition at line 370 of file sphereobj.h.


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