Frustum.h 331 B

12345678910111213141516171819
  1. #ifndef FRUSTUM_H
  2. #define FRUSTUM_H
  3. #include "client/math/Matrix.h"
  4. class Frustum final {
  5. public:
  6. Frustum(float fovY, float nearClip, float farClip);
  7. void setProjection(Matrix& m, int width, int height);
  8. float getClipDifference() const;
  9. private:
  10. float fovY;
  11. float nearClip;
  12. float farClip;
  13. };
  14. #endif