]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/clipping.h
Remove remaining deprecated things from the core classes
[libs/gl.git] / source / core / clipping.h
index b07195231423ca139a174af18c202c80153f6602..f682dc6459e6b0b1efbc9fab213dafa2c57a6b0e 100644 (file)
@@ -2,17 +2,14 @@
 #define MSP_GL_CLIPPING_H_
 
 #include <vector>
-#include <msp/core/attributes.h>
-#include "bindable.h"
 #include "programdata.h"
 
 namespace Msp {
 namespace GL {
 
 class ClipPlane;
-class Matrix;
 
-class Clipping: public Bindable<Clipping>
+class Clipping
 {
 private:
        struct AttachedPlane
@@ -27,19 +24,12 @@ private:
        mutable ProgramData shdata;
 
 public:
-       DEPRECATED static unsigned get_n_attach_points();
-
        void attach(const ClipPlane &);
        void detach(const ClipPlane &);
 
-       DEPRECATED void attach(unsigned, const ClipPlane &p) { attach(p); }
-       DEPRECATED void detach(unsigned);
+       unsigned get_n_planes() const { return planes.size(); }
 
        const ProgramData &get_shader_data() const;
-
-       void bind() const;
-
-       static void unbind();
 };
 
 } // namespace GL