X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fshader.h;h=86a70be0e10eb5716b2b296d17e7998c6a8c9e1a;hb=6a4907898281b738111e0c6527cc46f8810dc123;hp=cd01f2acda49a8c3374bc97c356263bccb653b91;hpb=a4ec5410595ddf37bfbc0e85ad87d31a9cbf94f1;p=libs%2Fgl.git diff --git a/source/shader.h b/source/shader.h index cd01f2ac..86a70be0 100644 --- a/source/shader.h +++ b/source/shader.h @@ -10,7 +10,6 @@ Distributed under the LGPL #include #include "gl.h" -#include "types.h" namespace Msp { namespace GL { @@ -26,18 +25,21 @@ class Shader public: Shader(ShaderType t); Shader(ShaderType t, const std::string &); +private: + void init(ShaderType); +public: ~Shader(); - void source(sizei count, const char **str, const int *len); + void source(unsigned count, const char **str, const int *len); void source(const std::string &str); void source(const char *str, int len); void compile(); - uint get_id() const { return id; } + unsigned get_id() const { return id; } bool get_compiled() const { return compiled; } int get_param(GLenum param) const; std::string get_info_log() const; private: - uint id; + unsigned id; bool compiled; };