rewrote memory system entirely (hunk, cache, and zone are gone, memory pools replaced...
[xonotic/darkplaces.git] / r_light.h
1
2 typedef struct
3 {
4         vec3_t origin;
5         vec_t cullradius2; // only for culling comparisons, squared version
6         vec3_t light; // the brightness of the light
7         vec_t cullradius; // only for culling comparisons
8         vec_t lightsubtract; // to avoid sudden brightness change at cullradius, subtract this
9         entity_render_t *ent; // owner of this light
10 }
11 rdlight_t;
12
13 extern int r_numdlights;
14 extern rdlight_t r_dlight[MAX_DLIGHTS];
15
16 void R_BuildLightList(void);
17 void R_AnimateLight (void);
18 void R_MarkLights(void);
19 void R_CompleteLightPoint (vec3_t color, vec3_t p, int dynamic, mleaf_t *leaf);
20 void R_LightModel (int numverts);