Files
voxel-raycaster/include/GL_Testing.h
MitchellHansen 5e58ade16f Modified CMake to now find and link GLEW
Slight tweaks to how CMake interacts with VS
Added small OpenGL testing class which draws over the raycasted image
Going to use Gl to start helping with debug / enabling hybrid rendering
2016-11-28 22:00:55 -08:00

30 lines
472 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 draw();
private:
GLuint VBO; //raw points
GLuint EBO; //link triangles
GLuint VAO;
GLuint vertex_shader;
GLuint fragment_shader;
GLuint shader_program;
};