#include "r_entity.h"
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) |
Definition in file r_light.h.
#define MAX_DYNAMIC_LIGHTS 64 |
Definition at line 37 of file r_light.h.
Referenced by R_AddLightsource().
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 | ) |
Definition at line 141 of file r_light.c.
References r_light_s::ambientColor, Com_Printf(), rstate_t::dynamicLights, MAX_DYNAMIC_LIGHTS, rstate_t::numActiveLights, and r_state.
Referenced by CL_SpawnParseEntitystring(), and SP_light().
Definition at line 57 of file r_light.c.
References light_t::color, i, cvar_s::integer, sustain_s::light, MAX_GL_LIGHTS, light_t::origin, r_lights, light_t::radius, refdef, sustain_s::sustain, rendererData_t::time, sustain_s::time, and VectorCopy.
Referenced by CL_ParticleRun2().
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 | ) |
Definition at line 118 of file r_light.c.
References light_t::color, i, LIGHT_RADIUS_FACTOR, lights_offset, MAX_GL_LIGHTS, rendererData_t::numLights, light_t::origin, R_AddSustainedLights(), light_t::radius, refdef, VectorCopy, and VectorSubtract.
Referenced by R_RenderFrame().
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 | ) |