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

#include <W3DLaserDraw.h>

Inherits DrawModule, and LaserDrawInterface.

Public Member Functions

 W3DLaserDraw (Thing *thing, const ModuleData *moduleData)
 
virtual void doDrawModule (const Matrix3D *transformMtx)
 
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 setShadowsEnabled (Bool enable)
 we don't care about preserving temporary shadows.
 
virtual void setFullyObscuredByShroud (Bool fullyObscured)
 
virtual void reactToTransformChange (const Matrix3D *oldMtx, const Coord3D *oldPos, Real oldAngle)
 
virtual void reactToGeometryChange ()
 
virtual Bool isLaser () const
 
Real getLaserTemplateWidth () const
 
virtual LaserDrawInterfacegetLaserDrawInterface ()
 
virtual const LaserDrawInterfacegetLaserDrawInterface () 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 ObjectDrawInterfacegetObjectDrawInterface ()
 
virtual const ObjectDrawInterfacegetObjectDrawInterface () const
 
virtual DebrisDrawInterfacegetDebrisDrawInterface ()
 
virtual const DebrisDrawInterfacegetDebrisDrawInterface () const
 
virtual TracerDrawInterfacegetTracerDrawInterface ()
 
virtual const TracerDrawInterfacegetTracerDrawInterface () const
 
virtual RopeDrawInterfacegetRopeDrawInterface ()
 
virtual const RopeDrawInterfacegetRopeDrawInterface () 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)
 

Protected Attributes

SegmentedLineClass ** m_line3D
 line 3D for effect
 
TextureClassm_texture
 
Real m_textureAspectRatio
 aspect ratio of texture
 
Bool m_selfDirty
 

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

W3D laser draw

Definition at line 70 of file W3DLaserDraw.h.

Constructor & Destructor Documentation

◆ W3DLaserDraw()

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

Definition at line 116 of file W3DLaserDraw.cpp.

Member Function Documentation

◆ allocateShadows()

virtual void W3DLaserDraw::allocateShadows ( void )
inlinevirtual

we don't care about preserving temporary shadows.

Implements DrawModule.

Definition at line 83 of file W3DLaserDraw.h.

◆ doDrawModule()

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

Implements DrawModule.

Definition at line 252 of file W3DLaserDraw.cpp.

◆ getLaserDrawInterface() [1/2]

virtual LaserDrawInterface * W3DLaserDraw::getLaserDrawInterface ( )
inlinevirtual

Reimplemented from DrawModule.

Definition at line 91 of file W3DLaserDraw.h.

◆ getLaserDrawInterface() [2/2]

virtual const LaserDrawInterface * W3DLaserDraw::getLaserDrawInterface ( ) const
inlinevirtual

Reimplemented from DrawModule.

Definition at line 92 of file W3DLaserDraw.h.

◆ getLaserTemplateWidth()

Real W3DLaserDraw::getLaserTemplateWidth ( ) const
virtual

Implements LaserDrawInterface.

Definition at line 244 of file W3DLaserDraw.cpp.

◆ isLaser()

virtual Bool W3DLaserDraw::isLaser ( ) const
inlinevirtual

Reimplemented from DrawModule.

Definition at line 88 of file W3DLaserDraw.h.

◆ reactToGeometryChange()

virtual void W3DLaserDraw::reactToGeometryChange ( )
inlinevirtual

Implements DrawModule.

Definition at line 87 of file W3DLaserDraw.h.

◆ reactToTransformChange()

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

Implements DrawModule.

Definition at line 86 of file W3DLaserDraw.h.

◆ releaseShadows()

virtual void W3DLaserDraw::releaseShadows ( void )
inlinevirtual

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

Implements DrawModule.

Definition at line 82 of file W3DLaserDraw.h.

◆ setFullyObscuredByShroud()

virtual void W3DLaserDraw::setFullyObscuredByShroud ( Bool fullyObscured)
inlinevirtual

Implements DrawModule.

Definition at line 85 of file W3DLaserDraw.h.

◆ setShadowsEnabled()

virtual void W3DLaserDraw::setShadowsEnabled ( Bool enable)
inlinevirtual

we don't care about preserving temporary shadows.

Implements DrawModule.

Definition at line 84 of file W3DLaserDraw.h.

Member Data Documentation

◆ m_line3D

SegmentedLineClass** W3DLaserDraw::m_line3D
protected

line 3D for effect

Definition at line 96 of file W3DLaserDraw.h.

◆ m_selfDirty

Bool W3DLaserDraw::m_selfDirty
protected

Definition at line 99 of file W3DLaserDraw.h.

◆ m_texture

TextureClass* W3DLaserDraw::m_texture
protected

Definition at line 97 of file W3DLaserDraw.h.

◆ m_textureAspectRatio

Real W3DLaserDraw::m_textureAspectRatio
protected

aspect ratio of texture

Definition at line 98 of file W3DLaserDraw.h.


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