📄 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 + -