]> git.tdb.fi Git - libs/gl.git/blobdiff - source/pipeline.h
Style update: add spaces around assignment operators
[libs/gl.git] / source / pipeline.h
index 8edd679507ccbd9e8e0cc37f8b334f5f823a495d..5da9a7b32141035b891191c027ff146b108fd824 100644 (file)
@@ -15,6 +15,7 @@ Distributed under the LGPL
 namespace Msp {
 namespace GL {
 
+class Camera;
 class Effect;
 class Framebuffer;
 class PostProcessor;
@@ -28,6 +29,7 @@ private:
 
        PassMap passes;
        std::vector<Tag> pass_order;
+       const Camera *camera;
        std::vector<const Renderable *> renderables;
        std::vector<Effect *> effects;
        std::vector<PostProcessor *> postproc;
@@ -42,6 +44,8 @@ public:
        Pipeline(unsigned, unsigned, bool);
        ~Pipeline();
 
+       void set_camera(const Camera *);
+
        PipelinePass &add_pass(const Tag &tag);
        PipelinePass &get_pass(const Tag &tag);
        const PipelinePass &get_pass(const Tag &tag) const;
@@ -50,7 +54,7 @@ public:
        void add_effect(Effect &);
        void add_postprocessor(PostProcessor &);
 
-       virtual void render(const Tag &tag=Tag()) const;
+       virtual void render(const Tag &tag = Tag()) const;
        void render_all() const;
 };