]> icculus.org git repositories - divverent/darkplaces.git/blob - r_light.h
Added MSVC6 project files
[divverent/darkplaces.git] / r_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_t *ent;                          // the entity that spawned this light (can be NULL if it is not to be replaced repeatedly)
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 void R_CompleteLightPoint (vec3_t color, vec3_t p, int dynamic);
18 extern void R_DynamicLightPoint(vec3_t color, vec3_t org, int *dlightbits);
19 extern void R_DynamicLightPointNoMask(vec3_t color, vec3_t org);
20 extern void R_LightPoint (vec3_t color, vec3_t p);