- static Require _req(MSP_clipping);
- static int count = get_i(GL_MAX_CLIP_PLANES);
- return count;
-}
-
-void Clipping::attach(unsigned i, const ClipPlane &p)
-{
- if(i>=get_n_attach_points())
- throw out_of_range("Clipping::attach");
-
- if(i>=planes.size())
- planes.resize(i+1);
-
- planes[i] = &p;
- if(current()==this)
- glEnable(GL_CLIP_PLANE0+i);
-}
-
-void Clipping::detach(unsigned i)
-{
- if(i>=planes.size())