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_ARB,
20 VERTEX_SHADER = GL_VERTEX_SHADER_ARB
31 Shader(ShaderType t, const std::string &);
33 void init(ShaderType);
37 void source(unsigned count, const char **str, const int *len);
38 void source(const std::string &str);
39 void source(const char *str, int len);
41 unsigned get_id() const { return id; }
42 bool is_compiled() const { return compiled; }
43 std::string get_info_log() const;