📄 frustum.h
字号:
// ==========================================================================================================
//
// BREW v2.0+ OPENGLES MICROENGINE
//
// ----------------------------------------
//
// Written by Vander Nunes
//
// ==========================================================================================================
#ifndef __FRUSTUM_H__
#define __FRUSTUM_H__
#include "AEEAppGen.h"
#include "defines.h"
#include "math3d.h"
#define FRUSTUM_RELATION WORD
#define FRUSTUM_INSIDE 1
#define FRUSTUM_OUTSIDE 2
#define FRUSTUM_INTERSECTING 3
class CFrustum
{
public:
CFrustum();
~CFrustum();
plane3_t m_Planes[6];
// create frustum planes from projection matrix
void InitFromProjectionMatrix(matrix_t mProjection);
// test if a bounding box is inside Frustum planes
FRUSTUM_RELATION BoxRelation(vec3_t vMin, vec3_t vMax);
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -