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

#include <light.h>

Collaboration diagram for Light:
Collaboration graph
[legend]

Public Member Functions

 Light (Entity *entity, Graphics &gfx, int num, float scale)
 
void render_shadow_volume (Graphics &gfx, int index)
 
void render_map_shadowvol (Graphics &gfx)
 
void generate_map_volumes (Graphics &gfx, Bsp &map, int current_light)
 
void generate_ent_volumes (Graphics &gfx, vector< Entity * > &entity_list)
 
void destroy (Graphics &gfx)
 
void generate_cubemaps (Graphics &gfx)
 

Public Attributes

Entityentity
 
unsigned int fbo_shadowmaps [NUM_CUBE_FACE]
 
unsigned int quad_tex [NUM_CUBE_FACE]
 
unsigned int depth_tex [NUM_CUBE_FACE]
 
unsigned int array_tex
 
matrix4 shadow_projection
 
matrix4 shadow_matrix [NUM_CUBE_FACE]
 
int shadow_flag
 
ShadowVolume shadow [MAX_SHADOWVOL]
 
int num_shadowvol
 
ShadowVolume map_shadow
 
vec3 color
 
float intensity
 
float attenuation
 
bool active
 
bool timer_flag
 
float lightmap_scale
 
int timer
 
unsigned int light_num
 

Constructor & Destructor Documentation

Light::Light ( Entity entity,
Graphics gfx,
int  num,
float  scale 
)

Member Function Documentation

void Light::destroy ( Graphics gfx)

Here is the call graph for this function:

void Light::generate_cubemaps ( Graphics gfx)

Here is the call graph for this function:

void Light::generate_ent_volumes ( Graphics gfx,
vector< Entity * > &  entity_list 
)

Here is the call graph for this function:

void Light::generate_map_volumes ( Graphics gfx,
Bsp map,
int  current_light 
)

Here is the call graph for this function:

void Light::render_map_shadowvol ( Graphics gfx)

Here is the call graph for this function:

void Light::render_shadow_volume ( Graphics gfx,
int  index 
)

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

bool Light::active
unsigned int Light::array_tex
float Light::attenuation
vec3 Light::color
unsigned int Light::depth_tex[NUM_CUBE_FACE]
Entity* Light::entity
unsigned int Light::fbo_shadowmaps[NUM_CUBE_FACE]
float Light::intensity
unsigned int Light::light_num
float Light::lightmap_scale
ShadowVolume Light::map_shadow
int Light::num_shadowvol
unsigned int Light::quad_tex[NUM_CUBE_FACE]
ShadowVolume Light::shadow[MAX_SHADOWVOL]
int Light::shadow_flag
matrix4 Light::shadow_matrix[NUM_CUBE_FACE]
matrix4 Light::shadow_projection
int Light::timer
bool Light::timer_flag

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