+++ /dev/null
-#ifndef MSP_GL_CLIPPING_H_
-#define MSP_GL_CLIPPING_H_
-
-#include <vector>
-#include "programdata.h"
-
-namespace Msp {
-namespace GL {
-
-class ClipPlane;
-
-class Clipping
-{
-private:
- struct AttachedPlane
- {
- const ClipPlane *plane;
- mutable unsigned generation;
-
- AttachedPlane(const ClipPlane *p): plane(p), generation(0) { }
- };
-
- std::vector<AttachedPlane> planes;
- mutable ProgramData shdata;
-
-public:
- void attach(const ClipPlane &);
- void detach(const ClipPlane &);
-
- unsigned get_n_planes() const { return planes.size(); }
-
- const ProgramData &get_shader_data() const;
-};
-
-} // namespace GL
-} // namespace Msp
-
-#endif