]> icculus.org git repositories - divverent/darkplaces.git/blob - r_clip.h
check if model is NULL when doing trace checking
[divverent/darkplaces.git] / r_clip.h
1
2 void R_Clip_StartFrame(void);
3 void R_Clip_EndFrame(void);
4 //int R_Clip_Polygon(float *inv, int numpoints, int stride, int solid);
5 //int R_Clip_Portal(float *inv, int numpoints, int stride);
6 // This takes a polygon in the form of vec_t triplets, at a caller specified
7 // stride (structure size), it can be solid (obscures other geometry) or not,
8 // a callback and two parameters must be provided (will be called if it is
9 // determined visible), and a plane can be provided (this also indicates that
10 // the surface is not a backface, so if a plane is provided, the caller must
11 // check that it is not a backface, it is not likely to be fatal if the caller
12 // does not, but it is inadvisable)
13 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);
14 void R_Clip_AddBox(float *mins, float *maxs, void (*callback)(void *nativedata, void *nativedata2), void *nativedata, void *nativedata2);