]> icculus.org git repositories - divverent/darkplaces.git/blob - r_clip.h
add -fno-strict-aliasing
[divverent/darkplaces.git] / r_clip.h
1
2 #ifndef R_CLIP_H
3 #define R_CLIP_H
4
5 void R_Clip_StartFrame(void);
6 void R_Clip_EndFrame(void);
7 // This takes a polygon in the form of vec_t triplets, at a caller specified
8 // stride (structure size), it can be solid (obscures other geometry) or not,
9 // a callback and two parameters must be provided (will be called if it is
10 // determined visible), and a plane can be provided (this also indicates that
11 // the surface is not a backface, so if a plane is provided, the caller must
12 // check that it is not a backface, it is not likely to be fatal if the caller
13 // does not, but it is inadvisable)
14 void R_Clip_AddPolygon (vec_t *points, int numverts, int stride, int solid, void (*callback)(void *nativedata, void *nativedata2), void *nativedata, void *nativedata2, tinyplane_t *polyplane);
15 void R_Clip_AddBox(float *mins, float *maxs, void (*callback)(void *nativedata, void *nativedata2), void *nativedata, void *nativedata2);
16
17 #endif
18