]> git.tdb.fi Git - libs/gl.git/blobdiff - source/programbuilder.h
Present Mesh's index buffer as current while the Mesh is bound
[libs/gl.git] / source / programbuilder.h
index a6eb3fde8522dc097b19032c972cab399c078685..14a90a85250eeb50c038e1498382210e3acd3bef 100644 (file)
@@ -31,12 +31,14 @@ public:
                bool reflection;
                bool transform;
                bool colorify;
+               bool legacy;
 
                StandardFeatures();
 
                std::string create_flags() const;
        };
 
+private:
        enum VariableScope
        {
                NO_SCOPE,
@@ -46,7 +48,6 @@ public:
                FRAGMENT
        };
 
-private:
        struct StandardVariable
        {
                VariableScope scope;
@@ -75,7 +76,7 @@ private:
                void resolve_space(const std::string &);
                void add_reference(ShaderVariable &);
                void update_reference(ShaderVariable &, ShaderVariable &);
-               void check_inline();
+               void check_inline(bool);
                bool is_referenced_from(VariableScope) const;
                std::string get_expression() const;
        };