]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/output.h
Allow using SL::Formatter on single nodes
[libs/gl.git] / source / glsl / output.h
index 5b03420223c3f70fb57f7f900f6708e2da5efe39..5f741909062f2f9ada8fce46ae0fc7fe3502e02c 100644 (file)
@@ -23,6 +23,7 @@ public:
        Formatter();
 
        const std::string &apply(Stage &);
+       const std::string &apply(Node &n) { n.visit(*this); return formatted; }
 
 private:
        void append(const std::string &);