You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
424 B

  1. #pragma once
  2. #include "glew.h"
  3. #include "Glm/glm.hpp"
  4. #include "Glm/ext.hpp"
  5. class Frustum {
  6. public:
  7. GLuint mVBO, mIBO, mProgram;
  8. GLint mPLocation, mVLocation, mMLocation, mPosLocation;
  9. Frustum();
  10. void Init();
  11. void InitPerspective(float fov, float aspect, float zNear, float zFar);
  12. void InitOrtho(float left, float right, float bottom, float top, float zNear, float zFar);
  13. void Draw(float* M, float* V, float* P);
  14. };