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 &);
31 void source(sizei count, const char **str, const int *len);
32 void source(const std::string &str);
33 void source(const char *str, int len);
35 uint get_id() const { return id; }
36 bool get_compiled() const { return compiled; }
37 int get_param(GLenum param) const;
38 std::string get_info_log() const;