afTerrainPVS.h
资源名称:AirForce.rar [点击查看]
上传用户:kaiguan
上传日期:2007-10-28
资源大小:1074k
文件大小:1k
源码类别:
其他游戏
开发平台:
Visual C++
- #ifndef AF_TERRAINPVS
- #define AF_TERRAINPVS
- class afTerrainPVS
- {
- public:
- afTerrainPVS();
- ~afTerrainPVS();
- void calc(const unsigned char* nMinData,
- const unsigned char* nMaxData,
- unsigned int nX, unsigned int nY, unsigned int nZ, unsigned int nDZ);
- void shrink();
- bool save(const char* nFileName);
- bool load(const char* nFileName);
- bool isVisible(int nFromX, int nFromY, int nFromZ, int nDestX, int nDestY) const;
- int getDataX() const { return dataX; }
- int getDataY() const { return dataY; }
- int getDataZ() const { return dataZ; }
- int getDataDZ() const { return dataDZ; }
- private:
- void setVisible(int nX0, int nY0, int nZ0, int nX1, int nY1, bool nValue);
- unsigned int getIdx(int nX0, int nY0, int nZ0, int nX1, int nY1) const;
- unsigned int dataX,dataY,dataZ, dataDZ;
- unsigned char* data;
- unsigned int dataSize;
- };
- #endif