r_light.h File Reference

#include "r_entity.h"
Include dependency graph for r_light.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  r_light_s

Defines

#define MAX_DYNAMIC_LIGHTS   64

Typedefs

typedef struct r_light_s r_light_t

Functions

void R_AddLight (const vec3_t origin, float radius, const vec3_t color)
void R_AddSustainedLight (const vec3_t org, float radius, const vec3_t color, float sustain)
void R_EnableLights (void)
void R_ShiftLights (const vec3_t offset)
void R_AddLightsource (const r_light_t *source)
void R_ClearActiveLights (void)
void R_UpdateLightList (struct entity_s *ent)

Detailed Description

Definition in file r_light.h.


Define Documentation

#define MAX_DYNAMIC_LIGHTS   64

Definition at line 37 of file r_light.h.

Referenced by R_AddLightsource().


Typedef Documentation

typedef struct r_light_s r_light_t

Function Documentation

void R_AddLight ( const vec3_t  origin,
float  radius,
const vec3_t  color 
)
Todo:
  • integrate the particle-based lights into the new dynamic light system

Definition at line 37 of file r_light.c.

References i, cvar_s::integer, MAX_GL_LIGHTS, rendererData_t::numLights, r_lights, light_t::radius, refdef, and VectorCopy.

Referenced by CL_ParticleRun2(), and R_AddSustainedLights().

void R_AddLightsource ( const r_light_t source  ) 
void R_AddSustainedLight ( const vec3_t  org,
float  radius,
const vec3_t  color,
float  sustain 
)
void R_ClearActiveLights ( void   ) 

Definition at line 153 of file r_light.c.

References i, cvar_s::integer, rstate_t::numActiveLights, r_dynamic_lights, and r_state.

Referenced by R_ModBeginLoading(), and R_SetDefaultState().

void R_EnableLights ( void   ) 
void R_ShiftLights ( const vec3_t  offset  ) 

Light sources must be translated for bsp submodel entities.

Definition at line 113 of file r_light.c.

References lights_offset, and VectorCopy.

Referenced by R_DrawBrushModel().

void R_UpdateLightList ( struct entity_s ent  ) 

Generated by  doxygen 1.6.2