mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-12-23 11:10:56 +00:00
1e98e3b4f2
Other notes: * on second thought I'll keep the hw_clip functions' gld prefixes rather than HWR, not like it matters either way * despite the extra lag it does fix the issues with translucent walls and such when displayed at different vertical angles, such as with the GFZ1 waterfall
24 lines
600 B
C
24 lines
600 B
C
/*
|
|
* hw_clip.h
|
|
* SRB2CB
|
|
*
|
|
* PrBoom's OpenGL clipping
|
|
*
|
|
*
|
|
*/
|
|
|
|
// OpenGL BSP clipping
|
|
#include "../doomdef.h"
|
|
#include "../tables.h"
|
|
#include "../doomtype.h"
|
|
|
|
//#define HAVE_SPHEREFRUSTRUM // enable if you want gld_SphereInFrustum and related code
|
|
|
|
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);
|
|
angle_t gld_FrustumAngle(void);
|
|
#ifdef HAVE_SPHEREFRUSTRUM
|
|
void gld_FrustrumSetup(void);
|
|
boolean gld_SphereInFrustum(float x, float y, float z, float radius);
|
|
#endif
|