]> git.tdb.fi Git - libs/gl.git/blobdiff - source/pipeline.h
Add an alpha channel flag to Pipeline
[libs/gl.git] / source / pipeline.h
index 9ac03efbb9989d4b2d462d689346f348ab299615..e8ffaf5ee46f3bcc3500143769e9c4ab2744ab42 100644 (file)
@@ -80,6 +80,7 @@ private:
        unsigned width;
        unsigned height;
        bool hdr;
+       bool alpha;
        unsigned samples;
        RenderTarget *target[2];
        RenderTarget *target_ms;
@@ -87,6 +88,7 @@ private:
 public:
        Pipeline(unsigned, unsigned, bool = false);
        Pipeline(const View &);
+       Pipeline(const Framebuffer &);
 private:
        void init(unsigned, unsigned);
 public:
@@ -96,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; }