]> icculus.org git repositories - divverent/darkplaces.git/blob - r_light.h
added cl_explosions and cl_stainmaps cvars, which will be used soon...
[divverent/darkplaces.git] / r_light.h
1
2 #ifndef R_LIGHT_H
3 #define R_LIGHT_H
4
5 typedef struct
6 {
7         vec3_t origin;
8         vec_t cullradius2; // only for culling comparisons, squared version
9         vec3_t light; // the brightness of the light
10         vec_t cullradius; // only for culling comparisons
11         vec_t lightsubtract; // to avoid sudden brightness change at cullradius, subtract this
12         entity_render_t *ent; // owner of this light
13 }
14 rdlight_t;
15
16 extern int r_numdlights;
17 extern rdlight_t r_dlight[MAX_DLIGHTS];
18
19 void R_BuildLightList(void);
20 void R_AnimateLight(void);
21 void R_MarkLights(void);
22 void R_DrawCoronas(void);
23 void R_CompleteLightPoint(vec3_t color, vec3_t p, int dynamic, mleaf_t *leaf);
24 void R_LightModel(int numverts, float colorr, float colorg, float colorb, int worldcoords);
25
26 #endif
27