1 #ifndef MSP_GL_CLIPPING_H_
2 #define MSP_GL_CLIPPING_H_
5 #include <msp/core/attributes.h>
7 #include "programdata.h"
15 class Clipping: public Bindable<Clipping>
20 const ClipPlane *plane;
21 mutable unsigned generation;
23 AttachedPlane(const ClipPlane *p): plane(p), generation(0) { }
26 std::vector<AttachedPlane> planes;
27 mutable ProgramData shdata;
30 DEPRECATED static unsigned get_n_attach_points();
32 void attach(const ClipPlane &);
33 void detach(const ClipPlane &);
35 DEPRECATED void attach(unsigned, const ClipPlane &p) { attach(p); }
36 DEPRECATED void detach(unsigned);
38 const ProgramData &get_shader_data() const;