]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/output.h
Transform interface block contents into structs
[libs/gl.git] / source / glsl / output.h
index e09f7c2ebca8c5dd18e094f89ed9a8939027007c..f720606eadbda1eeef757a39a7bb75bfbd4696d1 100644 (file)
@@ -9,6 +9,7 @@ namespace Msp {
 namespace GL {
 namespace SL {
 
+/** Formats the syntax tree as GLSL. */
 class Formatter: private TraversingVisitor
 {
 private:
@@ -19,7 +20,6 @@ private:
        unsigned source_line;
        unsigned indent;
        bool parameter_list;
-       std::string block_interface;
 
 public:
        Formatter();
@@ -36,6 +36,7 @@ private:
        virtual void visit(Literal &);
        virtual void visit(ParenthesizedExpression &);
        virtual void visit(VariableReference &);
+       virtual void visit(InterfaceBlockReference &);
        virtual void visit(MemberAccess &);
        virtual void visit(UnaryExpression &);
        virtual void visit(BinaryExpression &);
@@ -55,7 +56,6 @@ private:
        virtual void visit(Passthrough &);
        virtual void visit(Return &);
        virtual void visit(Jump &);
-       using TraversingVisitor::visit;
 };
 
 } // namespace SL