]> git.tdb.fi Git - libs/gl.git/blobdiff - source/clip.cpp
Remove a number of rarely used legacy features
[libs/gl.git] / source / clip.cpp
diff --git a/source/clip.cpp b/source/clip.cpp
deleted file mode 100644 (file)
index 9164177..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-#include "clip.h"
-#include "gl.h"
-
-namespace Msp {
-namespace GL {
-
-ClipPlane::ClipPlane(double a, double b, double c, double d)
-{
-       eq[0] = a;
-       eq[1] = b;
-       eq[2] = c;
-       eq[3] = d;
-}
-
-void ClipPlane::apply_to(unsigned n)
-{
-       glClipPlane(GL_CLIP_PLANE0+n, eq);
-       glEnable(GL_CLIP_PLANE0+n);
-}
-
-void ClipPlane::disable(unsigned n)
-{
-       glDisable(GL_CLIP_PLANE0+n);
-}
-
-} // namespace GL
-} // namespace Msp