]> git.tdb.fi Git - libs/gl.git/blobdiff - source/pipeline.h
Fully unbind Clipping when legacy mode changes
[libs/gl.git] / source / pipeline.h
index 2c5b6c6490fac43a85ce054cfdd78f69fe186f83..2c61a53791ae02ce36e3aa8c97cc68fda3b94b95 100644 (file)
@@ -13,6 +13,7 @@ namespace GL {
 
 class Blend;
 class Camera;
+class Clipping;
 class DepthTest;
 class Lighting;
 class PostProcessor;
@@ -49,6 +50,7 @@ public:
                const Lighting *lighting;
                const DepthTest *depth_test;
                const Blend *blend;
+               const Clipping *clipping;
 
        public:
                Pass(const Tag &);
@@ -58,9 +60,11 @@ public:
                void set_lighting(const Lighting *);
                void set_depth_test(const DepthTest *);
                void set_blend(const Blend *);
+               void set_clipping(const Clipping *);
                const Lighting *get_lighting() const { return lighting; }
                const DepthTest *get_depth_test() const { return depth_test; }
                const Blend *get_blend() const { return blend; }
+               const Clipping *get_clipping() const { return clipping; }
        };
 
 private:
@@ -126,7 +130,7 @@ public:
        virtual void render(Renderer &, const Tag &tag = Tag()) const;
 
 private:
-       void create_targets(bool);
+       void create_targets(unsigned);
 };
 
 } // namespace GL