www.pudn.com > Gimcrack-v0.0051-Source.zip > 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