Files
voxel-raycaster/include/GL_Testing.h
MitchellHansen 259f6a8488 Got some geometry up and rotating. It will be pretty trivial to pass in
the camera rotation now and have it follow along.
2016-11-29 00:31:22 -08:00

36 lines
560 B
C++

#pragma once
#include <string>
#include <util.hpp>
#define GLEW_STATIC
#include <GL/glew.h>
class GL_Testing
{
public:
GL_Testing();
~GL_Testing(){};
enum Shader_Type {VERTEX, FRAGMENT};
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:
GLuint VBO; //raw points
GLuint EBO; //link triangles
GLuint VAO;
GLuint vertex_shader;
GLuint fragment_shader;
GLuint shader_program;
GLfloat *matrix;
double counter = 0;
};