altEngine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | Private Attributes | List of all members
ShadowVolume Class Reference

#include <shadow_volume.h>

Collaboration diagram for ShadowVolume:
Collaboration graph
[legend]

Public Member Functions

 ShadowVolume ()
 
int CreateVolume (Graphics &gfx, vertex_t *pVertex, unsigned int *pIndex, unsigned int start_index, unsigned int num_face, vec3 &vLight)
 
void AddEdge (int *pEdge, unsigned int &num_edges, int v0, int v1)
 
int render (Graphics &gfx)
 
void destroy (Graphics &gfx)
 

Public Attributes

matrix3 morientation
 
vec3 position
 
int vbo
 
int ibo
 

Private Attributes

vertex_tvert_array
 
unsigned int * index_array
 
int * pEdges
 
unsigned int num_vert
 
unsigned int alloc_vert
 
unsigned int alloc_edge
 

Constructor & Destructor Documentation

ShadowVolume::ShadowVolume ( )

Member Function Documentation

void ShadowVolume::AddEdge ( int *  pEdge,
unsigned int &  num_edges,
int  v0,
int  v1 
)

Here is the caller graph for this function:

int ShadowVolume::CreateVolume ( Graphics gfx,
vertex_t pVertex,
unsigned int *  pIndex,
unsigned int  start_index,
unsigned int  num_face,
vec3 vLight 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void ShadowVolume::destroy ( Graphics gfx)

Here is the call graph for this function:

Here is the caller graph for this function:

int ShadowVolume::render ( Graphics gfx)

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

unsigned int ShadowVolume::alloc_edge
private
unsigned int ShadowVolume::alloc_vert
private
int ShadowVolume::ibo
unsigned int* ShadowVolume::index_array
private
matrix3 ShadowVolume::morientation
unsigned int ShadowVolume::num_vert
private
int* ShadowVolume::pEdges
private
vec3 ShadowVolume::position
int ShadowVolume::vbo
vertex_t* ShadowVolume::vert_array
private

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