]> icculus.org git repositories - divverent/darkplaces.git/blob - r_shadow.h
added a comment describing GL triangle strip order (why add it to this? convenience)
[divverent/darkplaces.git] / r_shadow.h
1
2 #ifndef R_SHADOW_H
3 #define R_SHADOW_H
4
5 extern cvar_t r_light_realtime;
6 extern cvar_t r_light_quality;
7 extern cvar_t r_light_gloss;
8 extern cvar_t r_light_debuglight;
9
10 void R_Shadow_Init(void);
11 void R_Shadow_Volume(int numverts, int numtris, float *vertex, int *elements, int *neighbors, vec3_t relativelightorigin, float lightradius, float projectdistance);
12 void R_Shadow_RenderLighting(int numverts, int numtriangles, const int *elements, const float *svectors, const float *tvectors, const float *normals, const float *texcoords, const float *relativelightorigin, const float *relativeeyeorigin, float lightradius, const float *lightcolor, rtexture_t *basetexture, rtexture_t *glosstexture, rtexture_t *bumptexture, rtexture_t *lightcubemap);
13 void R_Shadow_ClearStencil(void);
14
15 void R_Shadow_RenderVolume(int numverts, int numtris, int *elements);
16 void R_Shadow_Stage_Begin(void);
17 void R_Shadow_Stage_ShadowVolumes(void);
18 void R_Shadow_Stage_Light(void);
19 void R_Shadow_Stage_EraseShadowVolumes(void);
20 void R_Shadow_Stage_End(void);
21
22 #endif