40617c8953
to specify the batch pipeline specified at StackOverflow See https://stackoverflow.com/questions/8923174/opengl-vao-best-practices#8923298
25 lines
258 B
C++
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;
|
|
};
|
|
|