26 lines
293 B
C++
26 lines
293 B
C++
#pragma once
|
|
|
|
#include "stdafx.h"
|
|
|
|
#include <string>
|
|
|
|
namespace charcoal
|
|
{
|
|
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;
|
|
};
|
|
} |