2017-01-09 22:13:26 +00:00
|
|
|
/*
|
|
|
|
* hw_clip.h
|
|
|
|
* SRB2CB
|
|
|
|
*
|
|
|
|
* PrBoom's OpenGL clipping
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
// OpenGL BSP clipping
|
|
|
|
#include "../doomdef.h"
|
|
|
|
#include "../tables.h"
|
|
|
|
#include "../doomtype.h"
|
|
|
|
|
2017-01-10 18:01:03 +00:00
|
|
|
//#define HAVE_SPHEREFRUSTRUM // enable if you want gld_SphereInFrustum and related code
|
2017-01-09 22:13:26 +00:00
|
|
|
|
2017-01-10 18:01:03 +00:00
|
|
|
boolean gld_clipper_SafeCheckRange(angle_t startAngle, angle_t endAngle);
|
|
|
|
void gld_clipper_SafeAddClipRange(angle_t startangle, angle_t endangle);
|
|
|
|
void gld_clipper_Clear(void);
|
2019-12-25 19:22:01 +00:00
|
|
|
angle_t gld_FrustumAngle(angle_t tiltangle);
|
2017-01-09 22:13:26 +00:00
|
|
|
#ifdef HAVE_SPHEREFRUSTRUM
|
2017-01-10 18:01:03 +00:00
|
|
|
void gld_FrustrumSetup(void);
|
|
|
|
boolean gld_SphereInFrustum(float x, float y, float z, float radius);
|
2017-01-09 22:13:26 +00:00
|
|
|
#endif
|