]> icculus.org git repositories - divverent/darkplaces.git/blob - cl_light.h
forgot to add this
[divverent/darkplaces.git] / cl_light.h
1
2 // LordHavoc: 256 dynamic lights
3 #define MAX_DLIGHTS             256
4 typedef struct
5 {
6         vec3_t  origin;
7         float   radius;
8         float   die;                    // stop lighting after this time
9         float   decay;                  // drop this each second
10         entity_render_t *ent;   // the entity that spawned this light (can be NULL if it will never be replaced)
11         vec3_t  color;                  // LordHavoc: colored lighting
12 } dlight_t;
13
14 // LordHavoc: this affects the lighting scale of the whole game
15 #define LIGHTOFFSET 4096.0f
16
17 extern  dlight_t                cl_dlights[MAX_DLIGHTS];
18
19 extern void CL_AllocDlight (entity_render_t *ent, vec3_t org, float radius, float red, float green, float blue, float decay, float lifetime);
20 extern void CL_DecayLights (void);
21