1 #ifndef MSP_GL_CLIPPING_H_
2 #define MSP_GL_CLIPPING_H_
5 #include "programdata.h"
17 const ClipPlane *plane;
18 mutable unsigned generation;
20 AttachedPlane(const ClipPlane *p): plane(p), generation(0) { }
23 std::vector<AttachedPlane> planes;
24 mutable ProgramData shdata;
27 void attach(const ClipPlane &);
28 void detach(const ClipPlane &);
30 unsigned get_n_planes() const { return planes.size(); }
32 const ProgramData &get_shader_data() const;