30 lines
352 B
C++
30 lines
352 B
C++
#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;
|
|
};
|
|
|