1 #ifndef MSP_GL_SHADER_H_
2 #define MSP_GL_SHADER_H_
12 FRAGMENT_SHADER = GL_FRAGMENT_SHADER_ARB,
13 VERTEX_SHADER = GL_VERTEX_SHADER_ARB
24 Shader(ShaderType t, const std::string &);
26 void init(ShaderType);
30 void source(unsigned count, const char **str, const int *len);
31 void source(const std::string &str);
32 void source(const char *str, int len);
34 unsigned get_id() const { return id; }
35 bool is_compiled() const { return compiled; }
36 std::string get_info_log() const;