29 #ifndef __GAME_PVS_H__
30 #define __GAME_PVS_H__
54 #define MAX_CURRENT_PVS 8 // must be a power of 2
int GetPortalCount(void) const
void FreeCurrentPVS(pvsHandle_t handle) const
void DrawCurrentPVS(const pvsHandle_t handle, const idVec3 &source) const
int GetPVSAreas(const idBounds &bounds, int *areas, int maxAreas) const
void DrawPVS(const idVec3 &source, const pvsType_t type=PVS_NORMAL) const
pvsHandle_t MergeCurrentPVS(pvsHandle_t pvs1, pvsHandle_t pvs2) const
GLuint GLuint GLsizei GLenum type
struct pvsStack_s * FloodPassagePVS_r(struct pvsPortal_s *source, const struct pvsPortal_s *portal, struct pvsStack_s *prevStack) const
struct pvsHandle_s pvsHandle_t
void FloodFrontPortalPVS_r(struct pvsPortal_s *portal, int areaNum) const
pvsHandle_t SetupCurrentPVS(const idVec3 &source, const pvsType_t type=PVS_NORMAL) const
GLsizei GLsizei GLcharARB * source
void DestroyPassages(void) const
bool InCurrentPVS(const pvsHandle_t handle, const idVec3 &target) const
struct pvsPortal_s * pvsPortals
struct pvsArea_s * pvsAreas
void GetConnectedAreas(int srcArea, bool *connectedAreas) const
void CreatePassages(void) const
void AddPassageBoundaries(const idWinding &source, const idWinding &pass, bool flipClip, idPlane *bounds, int &numBounds, int maxBounds) const
void CopyPortalPVSToMightSee(void) const
pvsCurrent_t currentPVS[MAX_CURRENT_PVS]
int AreaPVSFromPortalPVS(void) const
void PassagePVS(void) const
void FrontPortalPVS(void) const
void DestroyPVSData(void)
pvsHandle_t AllocCurrentPVS(unsigned int h) const
struct pvsCurrent_s pvsCurrent_t
int GetPVSArea(const idVec3 &point) const