Got some geometry up and rotating. It will be pretty trivial to pass in

the camera rotation now and have it follow along.
This commit is contained in:
MitchellHansen
2016-11-29 00:31:22 -08:00
parent 5e58ade16f
commit 259f6a8488
5 changed files with 60 additions and 5 deletions

View File

@@ -15,6 +15,8 @@ public:
void compile_shader(std::string file_path, Shader_Type t);
void create_program();
void create_buffers();
void transform();
void rotate(double delta);
void draw();
private:
@@ -25,5 +27,9 @@ private:
GLuint vertex_shader;
GLuint fragment_shader;
GLuint shader_program;
GLfloat *matrix;
double counter = 0;
};