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

#include <W3DDebrisDraw.h>

Inherits DrawModule, and DebrisDrawInterface.

Public Member Functions

 W3DDebrisDraw (Thing *thing, const ModuleData *moduleData)
 
virtual void doDrawModule (const Matrix3D *transformMtx)
 the draw method
 
virtual void setShadowsEnabled (Bool enable)
 
virtual void releaseShadows (void)
 frees all shadow resources used by this module - used by Options screen.
 
virtual void allocateShadows (void)
 we don't care about preserving temporary shadows.
 
virtual void setFullyObscuredByShroud (Bool fullyObscured)
 we don't care about preserving temporary shadows.
 
virtual void reactToTransformChange (const Matrix3D *oldMtx, const Coord3D *oldPos, Real oldAngle)
 
virtual void reactToGeometryChange ()
 
virtual void setModelName (AsciiString name, Color color, ShadowType t)
 
virtual void setAnimNames (AsciiString initial, AsciiString flying, AsciiString final, const FXList *finalFX)
 
virtual DebrisDrawInterfacegetDebrisDrawInterface ()
 
virtual const DebrisDrawInterfacegetDebrisDrawInterface () const
 
- Public Member Functions inherited from DrawModule
 DrawModule (Thing *thing, const ModuleData *moduleData)
 
virtual void setTerrainDecal (TerrainDecalType type)
 
virtual void setTerrainDecalSize (Real x, Real y)
 
virtual void setTerrainDecalOpacity (Real o)
 
virtual Bool isVisible () const
 for limiting tree sway, etc to visible objects
 
virtual Bool isLaser () const
 
virtual ObjectDrawInterfacegetObjectDrawInterface ()
 
virtual const ObjectDrawInterfacegetObjectDrawInterface () const
 
virtual TracerDrawInterfacegetTracerDrawInterface ()
 
virtual const TracerDrawInterfacegetTracerDrawInterface () const
 
virtual RopeDrawInterfacegetRopeDrawInterface ()
 
virtual const RopeDrawInterfacegetRopeDrawInterface () const
 
virtual LaserDrawInterfacegetLaserDrawInterface ()
 
virtual const LaserDrawInterfacegetLaserDrawInterface () const
 
- Public Member Functions inherited from DrawableModule
 DrawableModule (Thing *thing, const ModuleData *moduleData)
 < this abstract class needs memory pool hooks
 
- Public Member Functions inherited from Module
 Module (const ModuleData *moduleData)
 < this abstract class needs memory pool hooks
 
virtual NameKeyType getModuleNameKey () const =0
 
NameKeyType getModuleTagNameKey () const
 
virtual void onObjectCreated ()
 
virtual void onDrawableBoundToObject ()
 
virtual void preloadAssets (TimeOfDay timeOfDay)
 preload any assets we might have for this time of day
 
virtual void onDelete (void)
 
- Public Member Functions inherited from MemoryPoolObject
void deleteInstance ()
 
- Public Member Functions inherited from Snapshot
 Snapshot (void)
 
 ~Snapshot (void)
 

Additional Inherited Members

- Static Public Member Functions inherited from DrawModule
static ModuleType getModuleType ()
 
static Int getInterfaceMask ()
 
- Static Public Member Functions inherited from Module
static ModuleDatafriend_newModuleData (INI *ini)
 
- Protected Member Functions inherited from DrawableModule
DrawablegetDrawable ()
 
const DrawablegetDrawable () const
 
virtual void crc (Xfer *xfer)
 
virtual void xfer (Xfer *xfer)
 
virtual void loadPostProcess (void)
 
- Protected Member Functions inherited from Module
const ModuleDatagetModuleData () const
 
- Protected Member Functions inherited from MemoryPoolObject
virtual ~MemoryPoolObject ()
 
void * operator new (size_t s)
 
void operator delete (void *p)
 
virtual MemoryPoolgetObjectMemoryPool ()=0
 

Detailed Description

Definition at line 48 of file W3DDebrisDraw.h.

Constructor & Destructor Documentation

◆ W3DDebrisDraw()

W3DDebrisDraw::W3DDebrisDraw ( Thing * thing,
const ModuleData * moduleData )

Definition at line 53 of file W3DDebrisDraw.cpp.

Member Function Documentation

◆ allocateShadows()

virtual void W3DDebrisDraw::allocateShadows ( void )
inlinevirtual

we don't care about preserving temporary shadows.

Implements DrawModule.

Definition at line 64 of file W3DDebrisDraw.h.

◆ doDrawModule()

void W3DDebrisDraw::doDrawModule ( const Matrix3D * transformMtx)
virtual

the draw method

Implements DrawModule.

Definition at line 213 of file W3DDebrisDraw.cpp.

◆ getDebrisDrawInterface() [1/2]

virtual DebrisDrawInterface * W3DDebrisDraw::getDebrisDrawInterface ( )
inlinevirtual

Reimplemented from DrawModule.

Definition at line 73 of file W3DDebrisDraw.h.

◆ getDebrisDrawInterface() [2/2]

virtual const DebrisDrawInterface * W3DDebrisDraw::getDebrisDrawInterface ( ) const
inlinevirtual

Reimplemented from DrawModule.

Definition at line 74 of file W3DDebrisDraw.h.

◆ reactToGeometryChange()

virtual void W3DDebrisDraw::reactToGeometryChange ( )
inlinevirtual

Implements DrawModule.

Definition at line 68 of file W3DDebrisDraw.h.

◆ reactToTransformChange()

void W3DDebrisDraw::reactToTransformChange ( const Matrix3D * oldMtx,
const Coord3D * oldPos,
Real oldAngle )
virtual

Implements DrawModule.

Definition at line 202 of file W3DDebrisDraw.cpp.

◆ releaseShadows()

virtual void W3DDebrisDraw::releaseShadows ( void )
inlinevirtual

frees all shadow resources used by this module - used by Options screen.

Implements DrawModule.

Definition at line 63 of file W3DDebrisDraw.h.

◆ setAnimNames()

void W3DDebrisDraw::setAnimNames ( AsciiString initial,
AsciiString flying,
AsciiString final,
const FXList * finalFX )
virtual

Implements DebrisDrawInterface.

Definition at line 151 of file W3DDebrisDraw.cpp.

◆ setFullyObscuredByShroud()

void W3DDebrisDraw::setFullyObscuredByShroud ( Bool fullyObscured)
virtual

we don't care about preserving temporary shadows.

Implements DrawModule.

Definition at line 95 of file W3DDebrisDraw.cpp.

◆ setModelName()

void W3DDebrisDraw::setModelName ( AsciiString name,
Color color,
ShadowType t )
virtual
Todo
: Change back to identity once we figure out why objects show up at 0,0,0 OBJECT_PILE

Implements DebrisDrawInterface.

Definition at line 103 of file W3DDebrisDraw.cpp.

◆ setShadowsEnabled()

void W3DDebrisDraw::setShadowsEnabled ( Bool enable)
virtual

Implements DrawModule.

Definition at line 88 of file W3DDebrisDraw.cpp.


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