charcoal/OpenGLEngine/Shader.h

26 lines
291 B
C
Raw Normal View History

2018-09-05 06:49:02 +00:00
#pragma once
2018-10-10 21:44:15 +00:00
#include "deps.h"
2018-09-05 06:49:02 +00:00
#include <string>
2018-09-12 21:03:46 +00:00
namespace charcoal
2018-09-05 06:49:02 +00:00
{
2018-09-12 21:03:46 +00:00
enum ShaderType
{
VERTEX_SHADER,
FRAGMENT_SHADER
};
2018-09-05 06:49:02 +00:00
2018-09-12 21:03:46 +00:00
class Shader
{
public:
Shader(const std::string& source, ShaderType type);
~Shader();
2018-09-05 06:49:02 +00:00
2018-09-12 21:03:46 +00:00
GLuint get_shader() const;
2018-09-05 06:49:02 +00:00
2018-09-12 21:03:46 +00:00
private:
GLuint m_shader;
};
}