]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/output.h
Redesign the way shader programs are loaded
[libs/gl.git] / source / glsl / output.h
index 5f741909062f2f9ada8fce46ae0fc7fe3502e02c..aec63721d080c47ea6e28f5f1d2f0e4dedd8ff5b 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef MSP_GL_SL_OUTPUT_H_
 #define MSP_GL_SL_OUTPUT_H_
 
+#include "compiler.h"
 #include "syntax.h"
 #include "visitor.h"
 
@@ -12,6 +13,7 @@ class Formatter: private TraversingVisitor
 {
 private:
        Stage *stage;
+       Compiler::Mode mode;
        std::string formatted;
        unsigned source_index;
        unsigned source_line;
@@ -22,7 +24,7 @@ private:
 public:
        Formatter();
 
-       const std::string &apply(Stage &);
+       const std::string &apply(Stage &, Compiler::Mode);
        const std::string &apply(Node &n) { n.visit(*this); return formatted; }
 
 private: