]> icculus.org git repositories - divverent/darkplaces.git/blob - r_light.h
added DP_SV_DROPCLIENT extension
[divverent/darkplaces.git] / r_light.h
1
2 #ifndef R_LIGHT_H
3 #define R_LIGHT_H
4
5 extern int r_numdlights;
6 extern dlight_t r_dlight[MAX_DLIGHTS];
7
8 void R_UpdateLights(void);
9 void R_MarkLights(entity_render_t *ent);
10 void R_DrawCoronas(void);
11 void R_CompleteLightPoint(vec3_t ambientcolor, vec3_t diffusecolor, vec3_t diffusenormal, const vec3_t p, int dynamic, const mleaf_t *leaf);
12 int R_LightModel(float *ambient4f, float *diffusecolor, float *diffusenormal, const entity_render_t *ent, float colorr, float colorg, float colorb, float colora, int worldcoords);
13 void R_LightModel_CalcVertexColors(const float *ambientcolor4f, const float *diffusecolor, const float *diffusenormal, int numverts, const float *vertex3f, const float *normal3f, float *color4f);
14 void R_UpdateEntLights(entity_render_t *ent);
15
16 #endif
17