]> git.tdb.fi Git - libs/gl.git/blobdiff - source/programbuilder.h
Support generating modern, GLSL 1.30+ shaders with ProgramBuilder
[libs/gl.git] / source / programbuilder.h
index a6eb3fde8522dc097b19032c972cab399c078685..6845f4a9450590b7ab5c01e37b3ab99fbd886086 100644 (file)
@@ -31,6 +31,7 @@ public:
                bool reflection;
                bool transform;
                bool colorify;
+               bool legacy;
 
                StandardFeatures();
 
@@ -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;
        };