⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frustum.h

📁 小型的3D游戏引擎
💻 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 + -