1 #ifndef MSP_GL_CLIPPING_H_
2 #define MSP_GL_CLIPPING_H_
5 #include <msp/core/attributes.h>
6 #include "programdata.h"
18 const ClipPlane *plane;
19 mutable unsigned generation;
21 AttachedPlane(const ClipPlane *p): plane(p), generation(0) { }
24 std::vector<AttachedPlane> planes;
25 mutable ProgramData shdata;
28 DEPRECATED static unsigned get_n_attach_points();
30 void attach(const ClipPlane &);
31 void detach(const ClipPlane &);
33 unsigned get_n_planes() const { return planes.size(); }
35 DEPRECATED void attach(unsigned, const ClipPlane &p) { attach(p); }
36 DEPRECATED void detach(unsigned);
38 const ProgramData &get_shader_data() const;