forked from OctaForge/OctaCore
21 lines
490 B
C++
21 lines
490 B
C++
|
#ifndef ENGINE_PVS_HH
|
||
|
#define ENGINE_PVS_HH
|
||
|
|
||
|
#include <shared/geom.hh>
|
||
|
|
||
|
void clearpvs();
|
||
|
bool pvsoccluded(const ivec &bbmin, const ivec &bbmax);
|
||
|
bool pvsoccludedsphere(const vec ¢er, float radius);
|
||
|
bool waterpvsoccluded(int height);
|
||
|
void setviewcell(const vec &p);
|
||
|
void savepvs(stream *f);
|
||
|
void loadpvs(stream *f, int numpvs);
|
||
|
int getnumviewcells();
|
||
|
|
||
|
static inline bool pvsoccluded(const ivec &bborigin, int size)
|
||
|
{
|
||
|
return pvsoccluded(bborigin, ivec(bborigin).add(size));
|
||
|
}
|
||
|
|
||
|
#endif
|