]> git.tdb.fi Git - libs/gl.git/blobdiff - source/shader.h
Drop Shader::get_param and Program::get_param
[libs/gl.git] / source / shader.h
index 86a70be0e10eb5716b2b296d17e7998c6a8c9e1a..9482c4ad3730b1c68e63494f433e1f604a487aca 100644 (file)
@@ -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