1 #ifndef MSP_GL_CLIPPING_H_
2 #define MSP_GL_CLIPPING_H_
5 #include <msp/core/attributes.h>
6 #include "programdata.h"
19 const ClipPlane *plane;
20 mutable unsigned generation;
22 AttachedPlane(const ClipPlane *p): plane(p), generation(0) { }
25 std::vector<AttachedPlane> planes;
26 mutable ProgramData shdata;
29 DEPRECATED static unsigned get_n_attach_points();
31 void attach(const ClipPlane &);
32 void detach(const ClipPlane &);
34 unsigned get_n_planes() const { return planes.size(); }
36 DEPRECATED void attach(unsigned, const ClipPlane &p) { attach(p); }
37 DEPRECATED void detach(unsigned);
39 const ProgramData &get_shader_data() const;