X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fpipeline.h;h=e8ffaf5ee46f3bcc3500143769e9c4ab2744ab42;hp=0d38aaec40181ca402b896c1bf5a4530cb266fb7;hb=39488946c441f4007396e438f522609a8b2943ce;hpb=d6f8db673345501a29231890b52cbdfce4a8ecf8 diff --git a/source/pipeline.h b/source/pipeline.h index 0d38aaec..e8ffaf5e 100644 --- a/source/pipeline.h +++ b/source/pipeline.h @@ -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; }