X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fclipping.h;h=6496aed0ed866c778fa1d93dbbc2a6edb23eeb8a;hb=e92de029768eef5f0fd744329e589161b46d0762;hp=d74763ab7c697f9cade4e94ab4b15bdb518e0a10;hpb=a275d25eccad43716c5dcf91f8bc4af2a53c0445;p=libs%2Fgl.git diff --git a/source/core/clipping.h b/source/core/clipping.h index d74763ab..6496aed0 100644 --- a/source/core/clipping.h +++ b/source/core/clipping.h @@ -3,16 +3,14 @@ #include #include -#include "bindable.h" #include "programdata.h" namespace Msp { namespace GL { class ClipPlane; -class Matrix; -class Clipping: public Bindable +class Clipping { private: struct AttachedPlane @@ -27,19 +25,17 @@ private: mutable ProgramData shdata; public: - static unsigned get_n_attach_points(); + DEPRECATED static unsigned get_n_attach_points(); 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