- PipelinePass &add_pass(const Tag &tag);
- PipelinePass &get_pass(const Tag &tag);
- const PipelinePass &get_pass(const Tag &tag) const;
+ /* Sets high dynamic range mode. Requires floating-point texture support.
+ 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; }
+ unsigned get_height() const { return height; }
+ bool get_hdr() const { return hdr; }
+ unsigned get_multisample() const { return samples; }
+
+ // Deprecated
+ void set_camera(const Camera *);
+ Pass &add_pass(const Tag &tag);
+ void add_renderable(Renderable &);
+ void add_renderable_for_pass(Renderable &, const Tag &);
+ void remove_renderable(Renderable &);
+
+ /** Adds a pass to the pipeline. It's permissible to add the same
+ Renderable multiple times. */
+ Pass &add_pass(const Tag &, Renderable &);