]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/clipping.h
Change Clipping to use index-less attaching
[libs/gl.git] / source / core / clipping.h
index e42c28e6394b6c1c519afc26f182957b1f75be20..319a8d98ff765a9cfb4e1c7b3fd57ba825b60b75 100644 (file)
@@ -2,6 +2,7 @@
 #define MSP_GL_CLIPPING_H_
 
 #include <vector>
+#include <msp/core/attributes.h>
 #include "bindable.h"
 
 namespace Msp {
@@ -19,8 +20,11 @@ private:
 public:
        static unsigned get_n_attach_points();
 
-       void attach(unsigned, const ClipPlane &);
-       void detach(unsigned);
+       void attach(const ClipPlane &);
+       void detach(const ClipPlane &);
+
+       DEPRECATED void attach(unsigned, const ClipPlane &p) { attach(p); }
+       DEPRECATED void detach(unsigned);
 
        void update_shader_data(ProgramData &, const Matrix &) const;