]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/clipping.h
Remove the PixelStore class
[libs/gl.git] / source / core / clipping.h
index b07195231423ca139a174af18c202c80153f6602..109aeac99d2cea9561d09f46095bb09a9ce8ab2a 100644 (file)
@@ -3,7 +3,6 @@
 
 #include <vector>
 #include <msp/core/attributes.h>
-#include "bindable.h"
 #include "programdata.h"
 
 namespace Msp {
@@ -12,7 +11,7 @@ namespace GL {
 class ClipPlane;
 class Matrix;
 
-class Clipping: public Bindable<Clipping>
+class Clipping
 {
 private:
        struct AttachedPlane
@@ -32,14 +31,12 @@ public:
        void attach(const ClipPlane &);
        void detach(const ClipPlane &);
 
+       unsigned get_n_planes() const { return planes.size(); }
+
        DEPRECATED void attach(unsigned, const ClipPlane &p) { attach(p); }
        DEPRECATED void detach(unsigned);
 
        const ProgramData &get_shader_data() const;
-
-       void bind() const;
-
-       static void unbind();
 };
 
 } // namespace GL