Addresses minor issues across the engine to improve stability and UI. - Updates ImGui window size for better rendering - Adds macro for boolean returns (R_TRUE and R_FALSE) - Adds missing includes and removes unused code - Updates shader code to use the new macros and improve readability
34 lines
780 B
C++
34 lines
780 B
C++
#ifndef _FRUSTUMCLASS_H_
|
|
#define _FRUSTUMCLASS_H_
|
|
|
|
|
|
//////////////
|
|
// INCLUDES //
|
|
//////////////
|
|
#include <directxmath.h>
|
|
#include "macro.h"
|
|
using namespace DirectX;
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
// Class name: FrustumClass
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
class FrustumClass
|
|
{
|
|
public:
|
|
FrustumClass();
|
|
FrustumClass(const FrustumClass&);
|
|
~FrustumClass();
|
|
|
|
void ConstructFrustum(XMMATRIX, XMMATRIX, float);
|
|
|
|
bool CheckPoint(float, float, float);
|
|
bool CheckCube(float, float, float, float);
|
|
bool CheckSphere(float, float, float, float);
|
|
bool CheckRectangle(float, float, float, float, float, float);
|
|
|
|
private:
|
|
XMFLOAT4 m_planes[6];
|
|
};
|
|
|
|
#endif |