28 lines
345 B
C++
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;
|
|
};
|
|
} |