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

#include <decalsys.h>

Inherits ProjectorClass.

Public Member Functions

void Add_Mesh (RenderObjClass *mesh)
 
NonRefRenderObjListClassGet_Mesh_List (void)
 
uint32 Get_Decal_ID (void)
 
DecalSystemClassPeek_Decal_System (void)
 
void Set_Backface_Threshhold (float val)
 
float Get_Backface_Threshhold (void)
 
void Apply_To_Translucent_Meshes (bool onoff)
 
bool Is_Applied_To_Translucent_Meshes (void)
 
MaterialPassClassGet_Material (void)
 
void Set_Mesh_Transform (const Matrix3D &tm)
 
- Public Member Functions inherited from ProjectorClass
 ProjectorClass (void)
 
virtual ~ProjectorClass (void)
 
virtual void Set_Transform (const Matrix3D &tm)
 
virtual const Matrix3DGet_Transform (void) const
 
virtual void Set_Perspective_Projection (float hfov, float vfov, float znear, float zfar)
 
virtual void Set_Ortho_Projection (float xmin, float xmax, float ymin, float ymax, float znear, float zfar)
 
const OBBoxClassGet_Bounding_Volume (void) const
 
void Compute_Texture_Coordinate (const Vector3 &point, Vector3 *set_stq)
 
MatrixMapperClassPeek_Mapper () const
 

Protected Member Functions

 DecalGeneratorClass (uint32 id, DecalSystemClass *system)
 
 ~DecalGeneratorClass (void)
 
- Protected Member Functions inherited from ProjectorClass
virtual void Update_WS_Bounding_Volume (void)
 

Protected Attributes

DecalSystemClassSystem
 
uint32 DecalID
 
float BackfaceVal
 
bool ApplyToTranslucentMeshes
 
MaterialPassClassMaterial
 
NonRefRenderObjListClass MeshList
 
- Protected Attributes inherited from ProjectorClass
Matrix3D Transform
 
Matrix4x4 Projection
 
AABoxClass LocalBoundingVolume
 
OBBoxClass WorldBoundingVolume
 
MatrixMapperClassMapper
 

Friends

class DecalSystemClass
 

Detailed Description

DecalGeneratorClass This class encapsulates the information needed to generate a decal. It also tracks what meshes actually used it to generate new decal polygons.

Definition at line 131 of file decalsys.h.

Constructor & Destructor Documentation

◆ DecalGeneratorClass()

DecalGeneratorClass::DecalGeneratorClass ( uint32 id,
DecalSystemClass * system )
protected

Definition at line 172 of file decalsys.cpp.

◆ ~DecalGeneratorClass()

DecalGeneratorClass::~DecalGeneratorClass ( void )
protected

Definition at line 198 of file decalsys.cpp.

Member Function Documentation

◆ Add_Mesh()

void DecalGeneratorClass::Add_Mesh ( RenderObjClass * mesh)

Definition at line 219 of file decalsys.cpp.

◆ Apply_To_Translucent_Meshes()

void DecalGeneratorClass::Apply_To_Translucent_Meshes ( bool onoff)
inline

Definition at line 163 of file decalsys.h.

◆ Get_Backface_Threshhold()

float DecalGeneratorClass::Get_Backface_Threshhold ( void )
inline

Definition at line 156 of file decalsys.h.

◆ Get_Decal_ID()

uint32 DecalGeneratorClass::Get_Decal_ID ( void )
inline

Definition at line 147 of file decalsys.h.

◆ Get_Material()

MaterialPassClass * DecalGeneratorClass::Get_Material ( void )
inline

Definition at line 170 of file decalsys.h.

◆ Get_Mesh_List()

NonRefRenderObjListClass & DecalGeneratorClass::Get_Mesh_List ( void )

Definition at line 240 of file decalsys.cpp.

◆ Is_Applied_To_Translucent_Meshes()

bool DecalGeneratorClass::Is_Applied_To_Translucent_Meshes ( void )
inline

Definition at line 164 of file decalsys.h.

◆ Peek_Decal_System()

DecalSystemClass * DecalGeneratorClass::Peek_Decal_System ( void )
inline

Definition at line 148 of file decalsys.h.

◆ Set_Backface_Threshhold()

void DecalGeneratorClass::Set_Backface_Threshhold ( float val)
inline

Definition at line 155 of file decalsys.h.

◆ Set_Mesh_Transform()

void DecalGeneratorClass::Set_Mesh_Transform ( const Matrix3D & tm)

Definition at line 261 of file decalsys.cpp.

Friends And Related Symbol Documentation

◆ DecalSystemClass

friend class DecalSystemClass
friend

Definition at line 205 of file decalsys.h.

Member Data Documentation

◆ ApplyToTranslucentMeshes

bool DecalGeneratorClass::ApplyToTranslucentMeshes
protected

Definition at line 193 of file decalsys.h.

◆ BackfaceVal

float DecalGeneratorClass::BackfaceVal
protected

Definition at line 192 of file decalsys.h.

◆ DecalID

uint32 DecalGeneratorClass::DecalID
protected

Definition at line 187 of file decalsys.h.

◆ Material

MaterialPassClass* DecalGeneratorClass::Material
protected

Definition at line 198 of file decalsys.h.

◆ MeshList

NonRefRenderObjListClass DecalGeneratorClass::MeshList
protected

Definition at line 203 of file decalsys.h.

◆ System

DecalSystemClass* DecalGeneratorClass::System
protected

Definition at line 186 of file decalsys.h.


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