+++ /dev/null
-#ifndef MSP_GL_CLIPPING_H_
-#define MSP_GL_CLIPPING_H_
-
-#include <vector>
-#include <msp/core/attributes.h>
-#include "bindable.h"
-#include "programdata.h"
-
-namespace Msp {
-namespace GL {
-
-class ClipPlane;
-class Matrix;
-
-class Clipping: public Bindable<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:
- DEPRECATED static unsigned get_n_attach_points();
-
- void attach(const ClipPlane &);
- void detach(const ClipPlane &);
-
- DEPRECATED void attach(unsigned, const ClipPlane &p) { attach(p); }
- DEPRECATED void detach(unsigned);
-
- const ProgramData &get_shader_data() const;
-
- void bind() const;
-
- static void unbind();
-};
-
-} // namespace GL
-} // namespace Msp
-
-#endif