b494f68d0c
Now using GLFW3 instead of the custom window class. This library looks like it will make development much simpler and will make it so that I am less worried about my windows code breaking. Currently setup the http://antongerdelan.net/opengl/hellotriangle.html tutorial in the MySimpleScene. Will probably create another scene file to try to get the object oriented stuff working.
25 lines
309 B
C++
25 lines
309 B
C++
#pragma once
|
|
|
|
#include "stdafx.h"
|
|
|
|
#include "Exception.h"
|
|
|
|
#include "Shader.h"
|
|
|
|
class ShaderProgram
|
|
{
|
|
public:
|
|
ShaderProgram();
|
|
virtual ~ShaderProgram();
|
|
|
|
void use() const;
|
|
|
|
GLuint get_program() const;
|
|
|
|
protected:
|
|
void attach_shader(const Shader& shader);
|
|
void link();
|
|
|
|
private:
|
|
GLuint m_program = 0;
|
|
}; |