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_
19 FRAGMENT_SHADER = GL_FRAGMENT_SHADER,
20 VERTEX_SHADER = GL_VERTEX_SHADER
27 Shader(ShaderType t, const std::string &);
29 void init(ShaderType);
33 void source(unsigned count, const char **str, const int *len);
34 void source(const std::string &str);
35 void source(const char *str, int len);
37 unsigned get_id() const { return id; }
38 bool get_compiled() const { return compiled; }
39 int get_param(GLenum param) const;
40 std::string get_info_log() const;