2012-09-02 23:17:01 -04:00

20 lines
322 B
C++

#ifndef GLSHADER_H
#define GLSHADER_H
#include <GL/glew.h>
class GLShader
{
public:
GLShader();
~GLShader();
bool create(GLenum shaderType, const char *source);
GLuint get_id() { return m_id; }
bool valid() { return m_id > 0; }
protected:
GLuint m_id;
};
#endif