3 This file is part of libmspgl
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_GL_SHADER_H_
9 #define MSP_GL_SHADER_H_
20 FRAGMENT_SHADER = GL_FRAGMENT_SHADER,
21 VERTEX_SHADER = GL_VERTEX_SHADER
28 Shader(ShaderType t, const std::string &);
30 void init(ShaderType);
34 void source(sizei count, const char **str, const int *len);
35 void source(const std::string &str);
36 void source(const char *str, int len);
38 uint get_id() const { return id; }
39 bool get_compiled() const { return compiled; }
40 int get_param(GLenum param) const;
41 std::string get_info_log() const;