]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/clipping.h
Remove generic clipping state
[libs/gl.git] / source / core / clipping.h
diff --git a/source/core/clipping.h b/source/core/clipping.h
deleted file mode 100644 (file)
index f682dc6..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-#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