]> git.tdb.fi Git - libs/gl.git/blobdiff - source/pipeline.h
Remove last fragments of rendererless rendering
[libs/gl.git] / source / pipeline.h
index 0d38aaec40181ca402b896c1bf5a4530cb266fb7..d2ce6ab88adc0cd8993e9ad1e68402fb1a001723 100644 (file)
@@ -80,6 +80,7 @@ private:
        unsigned width;
        unsigned height;
        bool hdr;
+       bool alpha;
        unsigned samples;
        RenderTarget *target[2];
        RenderTarget *target_ms;
@@ -97,6 +98,10 @@ public:
        A ColorCurve postprocessor is recommended for full benefit. */
        void set_hdr(bool);
 
+       /* Enable or disable alpha channel.  When enabled, all render targets are
+       created with an RGBA pixel format instead of RGB. */
+       void set_alpha(bool);
+
        void set_multisample(unsigned);
 
        unsigned get_width() const { return width; }
@@ -130,7 +135,6 @@ public:
        virtual void setup_frame(Renderer &);
        virtual void finish_frame();
 
-       void render();
        virtual void render(Renderer &, const Tag &tag = Tag()) const;
 
 private: