]> git.tdb.fi Git - libs/gl.git/blobdiff - source/pipeline.h
Add a constructor to Pipeline which takes the size from a View
[libs/gl.git] / source / pipeline.h
index b450d0a5864ab76adcde1f92c1442a94b37fac89..35d10a41c6f5a6f3521ade05f0066a4218bebbb3 100644 (file)
@@ -18,6 +18,7 @@ class Clipping;
 class DepthTest;
 class Lighting;
 class PostProcessor;
+class View;
 
 /**
 Top-level content class.  Typically a Pipeline is used as the content
@@ -85,9 +86,16 @@ private:
 
 public:
        Pipeline(unsigned, unsigned, bool = false);
+       Pipeline(const View &);
+private:
+       void init(unsigned, unsigned);
+public:
        ~Pipeline();
 
+       /* Sets high dynamic range mode.  Requires floating-point texture support.
+       A ColorCurve postprocessor is recommended for full benefit. */
        void set_hdr(bool);
+
        void set_multisample(unsigned);
 
        // Deprecated
@@ -104,10 +112,10 @@ public:
        /** Adds a postprocessor to the pipeline. */
        void add_postprocessor(PostProcessor &);
 
-       virtual void setup_frame() const;
-       virtual void finish_frame() const;
+       virtual void setup_frame(Renderer &);
+       virtual void finish_frame();
 
-       void render() const;
+       void render();
        virtual void render(Renderer &, const Tag &tag = Tag()) const;
 
 private: