]> git.tdb.fi Git - libs/gl.git/blobdiff - source/program.h
The Scope enum has no need to be public
[libs/gl.git] / source / program.h
index 8cdfb6de44e561910b0f4e446d0d0095bab76b89..642bcf5e7755652734069e33d9df182a0e2fad96 100644 (file)
@@ -64,6 +64,7 @@ private:
        UniformBlockMap uniform_blocks;
        UniformMap uniforms;
        unsigned uniform_layout_hash;
+       bool legacy_vars;
 
 public:
        Program();
@@ -80,6 +81,7 @@ public:
        const ShaderList &get_shaders() const { return shaders; }
 
        void bind_attribute(unsigned, const std::string &);
+       void bind_fragment_data(unsigned, const std::string &);
 
        void link();
 private:
@@ -96,6 +98,8 @@ public:
        const UniformInfo &get_uniform_info(const std::string &) const;
        int get_uniform_location(const std::string &) const;
 
+       bool uses_legacy_variables() const { return legacy_vars; }
+
        void bind() const;
        static void unbind();
 };