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

#include <shattersystem.h>

Static Public Member Functions

static void Init (void)
 
static void Shutdown (void)
 
static void Shatter_Mesh (MeshClass *mesh, const Vector3 &point, const Vector3 &velocity)
 
static int Get_Fragment_Count (void)
 
static RenderObjClassGet_Fragment (int fragment_index)
 
static RenderObjClassPeek_Fragment (int fragment_index)
 
static void Release_Fragments (void)
 

Static Protected Member Functions

static void Reset_Clip_Pools (void)
 
static void Process_Clip_Pools (const Matrix3D &Mshatter_to_mesh, MeshClass *mesh, MeshMtlParamsClass &mtl_params)
 

Detailed Description

ShatterSystem This collection of static functions is used to "shatter" a mesh into fragments and create projectile objects which use the generated fragments as their render object.

Definition at line 62 of file shattersystem.h.

Member Function Documentation

◆ Get_Fragment()

RenderObjClass * ShatterSystem::Get_Fragment ( int fragment_index)
static

Definition at line 1052 of file shattersystem.cpp.

◆ Get_Fragment_Count()

int ShatterSystem::Get_Fragment_Count ( void )
static

Definition at line 1047 of file shattersystem.cpp.

◆ Init()

void ShatterSystem::Init ( void )
static

Definition at line 801 of file shattersystem.cpp.

◆ Peek_Fragment()

RenderObjClass * ShatterSystem::Peek_Fragment ( int fragment_index)
static

Definition at line 1060 of file shattersystem.cpp.

◆ Process_Clip_Pools()

void ShatterSystem::Process_Clip_Pools ( const Matrix3D & Mshatter_to_mesh,
MeshClass * mesh,
MeshMtlParamsClass & mtl_params )
staticprotected

Definition at line 1084 of file shattersystem.cpp.

◆ Release_Fragments()

void ShatterSystem::Release_Fragments ( void )
static

Definition at line 1065 of file shattersystem.cpp.

◆ Reset_Clip_Pools()

void ShatterSystem::Reset_Clip_Pools ( void )
staticprotected

Definition at line 1076 of file shattersystem.cpp.

◆ Shatter_Mesh()

void ShatterSystem::Shatter_Mesh ( MeshClass * mesh,
const Vector3 & point,
const Vector3 & velocity )
static

Definition at line 856 of file shattersystem.cpp.

◆ Shutdown()

void ShatterSystem::Shutdown ( void )
static

Definition at line 838 of file shattersystem.cpp.


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