charcoal/OpenGLEngine/Shader.h

30 lines
352 B
C
Raw Normal View History

2018-09-05 06:49:02 +00:00
#pragma once
#include <Windows.h>
#include <glew/glew.h>
#include <gl/GL.h>
#pragma comment(lib, "opengl32.lib")
#include <string>
enum ShaderType
{
VERTEX_SHADER,
FRAGMENT_SHADER
};
class Shader
{
public:
Shader(const char* source, ShaderType type);
~Shader();
GLuint get_shader() const;
private:
GLuint m_shader;
ShaderType m_type;
};