X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fshader.h;h=dfa5af3b5c18da91ed15fd062b32f7d5f8568ff0;hb=85e83ace47e5a9a8ae7263886255dd81afc69278;hp=4e02b08464ffbb2dbd00ef24806c7311a7d6c8d5;hpb=1431f24f29bd6862d547b831c40b2686ff56d1ef;p=libs%2Fgl.git diff --git a/source/shader.h b/source/shader.h index 4e02b084..dfa5af3b 100644 --- a/source/shader.h +++ b/source/shader.h @@ -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;