]> de.git.xonotic.org Git - xonotic/darkplaces.git/blob - cl_light.h
fix for missing (byte *) cast, and fix for WIN32 function lookup code in vid_shared.c
[xonotic/darkplaces.git] / cl_light.h
1
2 // LordHavoc: 256 dynamic lights
3 #define MAX_DLIGHTS             256
4 typedef struct
5 {
6         // location
7         vec3_t  origin;
8         // stop lighting after this time
9         float   die;
10         // color of light
11         vec3_t  color;
12         // brightness (not really radius anymore)
13         float   radius;
14         // drop this each second
15         float   decay;
16         // the entity that spawned this light (can be NULL if it will never be replaced)
17         entity_render_t *ent;
18 }
19 dlight_t;
20
21 // LordHavoc: this affects the lighting scale of the whole game
22 #define LIGHTOFFSET 1024.0f
23
24 extern dlight_t cl_dlights[MAX_DLIGHTS];
25
26 extern void CL_AllocDlight (entity_render_t *ent, vec3_t org, float radius, float red, float green, float blue, float decay, float lifetime);
27 extern void CL_DecayLights (void);