?? frustum.h
字號:
#ifndef _FRUSTUM_H_
#define _FRUSTUM_H_
#include "math/vector.h"
#include "math/math.h"
#include "math/aabb.h"
#include "math/plane.h"
class GcFrustum
{
public:
// Constructor / Destructor
GcFrustum();
~GcFrustum();
// Extract the frustum form OpenGL
void Extract();
// Check to see if the box is in the frustum
//bool BoxInFrustum(float x, float y, float z, float size, float height);
bool Contains(GcAABB & aabb);
private:
GcPlane m_frustum[6];
};
GcFrustum * ActiveFrustum();
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -