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.
 
 
 

15 lines
424 B

#pragma once
#include "glew.h"
#include "Glm/glm.hpp"
#include "Glm/ext.hpp"
class Frustum {
public:
GLuint mVBO, mIBO, mProgram;
GLint mPLocation, mVLocation, mMLocation, mPosLocation;
Frustum();
void Init();
void InitPerspective(float fov, float aspect, float zNear, float zFar);
void InitOrtho(float left, float right, float bottom, float top, float zNear, float zFar);
void Draw(float* M, float* V, float* P);
};