charcoal/OpenGLEngine/ShaderProgram.h
2018-09-12 17:03:46 -04:00

28 lines
345 B
C++

#pragma once
#include "stdafx.h"
#include "Exception.h"
#include "Shader.h"
namespace charcoal
{
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;
};
}