X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fshader.h;h=cd01f2acda49a8c3374bc97c356263bccb653b91;hb=a4ec5410595ddf37bfbc0e85ad87d31a9cbf94f1;hp=4e02b08464ffbb2dbd00ef24806c7311a7d6c8d5;hpb=1431f24f29bd6862d547b831c40b2686ff56d1ef;p=libs%2Fgl.git diff --git a/source/shader.h b/source/shader.h index 4e02b084..cd01f2ac 100644 --- a/source/shader.h +++ b/source/shader.h @@ -9,7 +9,7 @@ Distributed under the LGPL #define MSP_GL_SHADER_H_ #include -#include +#include "gl.h" #include "types.h" namespace Msp { @@ -25,12 +25,13 @@ class Shader { public: Shader(ShaderType t); + Shader(ShaderType t, const std::string &); ~Shader(); void source(sizei count, const char **str, const int *len); void source(const std::string &str); void source(const char *str, int len); - bool compile(); + void compile(); uint get_id() const { return id; } bool get_compiled() const { return compiled; } int get_param(GLenum param) const;