Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | Related Pages

ShadowGenerator Class Reference

#include <shadow.h>

Inheritance diagram for ShadowGenerator:

Inheritance graph
[legend]
Collaboration diagram for ShadowGenerator:

Collaboration graph
[legend]
List of all members.

Detailed Description

Shadow generator A shadow generator processes input geometry and generates a shadow. Implementations can range from simple projected blobs to render-to-texture projected shadow textures and stencil buffer shadows.

Author:
Mattias Jansson (mattias@realityrift.com)


Public Member Functions

 ShadowGenerator ()
virtual ~ShadowGenerator ()
virtual void GenerateShadow (VertexBufferPtr &pkVertexBuffer, PolygonBufferPtr &pkPolygonBuffer, BoundingVolume *pkBoundingVolume, const Matrix &rkTransform, const Matrix &rkInvTransform)=0
bool IsActive () const
virtual void Activate ()
virtual void Deactivate ()
bool Toggle ()

Protected Attributes

bool m_bActive


Constructor & Destructor Documentation

ShadowGenerator  )  [inline]
 

virtual ~ShadowGenerator  )  [inline, virtual]
 


Member Function Documentation

virtual void GenerateShadow VertexBufferPtr pkVertexBuffer,
PolygonBufferPtr &  pkPolygonBuffer,
BoundingVolume pkBoundingVolume,
const Matrix rkTransform,
const Matrix rkInvTransform
[pure virtual]
 

Generate shadow

Parameters:
pkVertexBuffer Vertex buffer for input geometry
pkPolygonBuffer Polygon buffer for input geometry
pkBoundingVolume Bounding volume for input geometry
rkTransform Transformation matrix
rkInvTransform Inverse transformation matrix

Implemented in StencilShadowGenerator.

bool IsActive  )  const [inline, inherited]
 

Query state of object

Returns:
true if active, false if not

void Activate  )  [inline, virtual, inherited]
 

Activate object

void Deactivate  )  [inline, virtual, inherited]
 

Deactivate object

bool Toggle  )  [inline, inherited]
 

Toggle active state. This method does not need to be overloaded, it is only a wrapper to Activate and Deactivate

Returns:
true if activated, false if deactivated


Member Data Documentation

bool m_bActive [protected, inherited]
 

Active flag


The documentation for this class was generated from the following file:
Generated on Wed Jan 21 14:21:15 2004 for NeoEngine by doxygen 1.3.5