X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fshader.h;h=9482c4ad3730b1c68e63494f433e1f604a487aca;hb=541bf02f18ad27e8c8101e4255586ddbfef40916;hp=86a70be0e10eb5716b2b296d17e7998c6a8c9e1a;hpb=ceae2a27dfc58310c5bab7e3aa3fedf0fa9a1f49;p=libs%2Fgl.git diff --git a/source/shader.h b/source/shader.h index 86a70be0..9482c4ad 100644 --- a/source/shader.h +++ b/source/shader.h @@ -16,12 +16,16 @@ namespace GL { enum ShaderType { - FRAGMENT_SHADER = GL_FRAGMENT_SHADER, - VERTEX_SHADER = GL_VERTEX_SHADER + FRAGMENT_SHADER = GL_FRAGMENT_SHADER_ARB, + VERTEX_SHADER = GL_VERTEX_SHADER_ARB }; class Shader { +private: + unsigned id; + bool compiled; + public: Shader(ShaderType t); Shader(ShaderType t, const std::string &); @@ -35,12 +39,8 @@ public: void source(const char *str, int len); void compile(); unsigned get_id() const { return id; } - bool get_compiled() const { return compiled; } - int get_param(GLenum param) const; + bool is_compiled() const { return compiled; } std::string get_info_log() const; -private: - unsigned id; - bool compiled; }; } // namespace GL