]> 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 82a954b58b481faf4809cac719baa3aa1c48079a..14a90a85250eeb50c038e1498382210e3acd3bef 100644 (file)
@@ -30,12 +30,15 @@ public:
                bool shadow;
                bool reflection;
                bool transform;
+               bool colorify;
+               bool legacy;
 
                StandardFeatures();
 
                std::string create_flags() const;
        };
 
+private:
        enum VariableScope
        {
                NO_SCOPE,
@@ -45,7 +48,6 @@ public:
                FRAGMENT
        };
 
-private:
        struct StandardVariable
        {
                VariableScope scope;
@@ -74,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;
        };