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

Public Member Functions

void Reset (void)
 
void Add_Vertex (const Vector3 &point, const Vector3 &normal)
 
void Clip (const PlaneClass &plane, DecalPolyClass &dest) const
 

Public Attributes

SimpleDynVecClass< Vector3Verts
 
SimpleDynVecClass< Vector3VertNorms
 

Detailed Description

DecalPolyClass - This class is used to clip polygons as they are added to a RigidDecalMesh.

Data needed to add a poly to the decal mesh: connectivity - generated on the fly after the poly is clipped planeeq - constant for entire poly, copy from source after done verts - plug into DecalPolyClass, clip, pull back out vnorms - plug into DecalPolyClass, clip, copy back out texcoords - compute after poly is clipped material - contstant for entire poly, get from generator shader - constant for entire poly, get from generator texture - constant for entire poly, get from generator

Definition at line 84 of file decalmsh.cpp.

Member Function Documentation

◆ Add_Vertex()

void DecalPolyClass::Add_Vertex ( const Vector3 & point,
const Vector3 & normal )

Definition at line 102 of file decalmsh.cpp.

◆ Clip()

void DecalPolyClass::Clip ( const PlaneClass & plane,
DecalPolyClass & dest ) const

Definition at line 108 of file decalmsh.cpp.

◆ Reset()

void DecalPolyClass::Reset ( void )

Definition at line 96 of file decalmsh.cpp.

Member Data Documentation

◆ VertNorms

SimpleDynVecClass<Vector3> DecalPolyClass::VertNorms

Definition at line 92 of file decalmsh.cpp.

◆ Verts

SimpleDynVecClass<Vector3> DecalPolyClass::Verts

Definition at line 91 of file decalmsh.cpp.


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