Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Shadow Class Reference

#include <Shadow.h>

List of all members.

Public Member Functions

 Shadow (Solid *solid)
virtual ~Shadow ()
int operator== (const Shadow &s) const
void Render (Video *video)
void Update (Light *light)
void AddEdge (WORD v1, WORD v2)
void Reset ()
bool IsEnabled () const
void SetEnabled (bool e)

Static Public Member Functions

static const char * TYPENAME ()
static void SetVisibleShadowVolumes (bool vis)
static bool GetVisibleShadowVolumes ()

Protected Attributes

Solidsolid
Vec3verts
int nverts
int max_verts
bool enabled
WORD * edges
DWORD num_edges

Detailed Description

Definition at line 34 of file Shadow.h.


Constructor & Destructor Documentation

Shadow::Shadow ( Solid solid)

Definition at line 26 of file Shadow.cpp.

Shadow::~Shadow ( )
virtual

Definition at line 43 of file Shadow.cpp.


Member Function Documentation

void Shadow::AddEdge ( WORD  v1,
WORD  v2 
)

Definition at line 143 of file Shadow.cpp.

bool Shadow::GetVisibleShadowVolumes ( )
static

Definition at line 167 of file Shadow.cpp.

bool Shadow::IsEnabled ( ) const
inline

Definition at line 50 of file Shadow.h.

int Shadow::operator== ( const Shadow s) const
inline

Definition at line 42 of file Shadow.h.

void Shadow::Render ( Video video)

Definition at line 61 of file Shadow.cpp.

void Shadow::Reset ( )

Definition at line 52 of file Shadow.cpp.

void Shadow::SetEnabled ( bool  e)
inline

Definition at line 51 of file Shadow.h.

void Shadow::SetVisibleShadowVolumes ( bool  vis)
static

Definition at line 173 of file Shadow.cpp.

static const char* Shadow::TYPENAME ( )
inlinestatic

Definition at line 37 of file Shadow.h.

void Shadow::Update ( Light light)

Definition at line 70 of file Shadow.cpp.


Member Data Documentation

WORD* Shadow::edges
protected

Definition at line 63 of file Shadow.h.

bool Shadow::enabled
protected

Definition at line 61 of file Shadow.h.

int Shadow::max_verts
protected

Definition at line 60 of file Shadow.h.

DWORD Shadow::num_edges
protected

Definition at line 64 of file Shadow.h.

int Shadow::nverts
protected

Definition at line 59 of file Shadow.h.

Solid* Shadow::solid
protected

Definition at line 57 of file Shadow.h.

Vec3* Shadow::verts
protected

Definition at line 58 of file Shadow.h.


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