charcoal/OpenGLEngine/Shader.h

25 lines
258 B
C++

#pragma once
#include "stdafx.h"
#include <string>
enum ShaderType
{
VERTEX_SHADER,
FRAGMENT_SHADER
};
class Shader
{
public:
Shader(const std::string& source, ShaderType type);
~Shader();
GLuint get_shader() const;
private:
GLuint m_shader;
};