]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/clipplane.cpp
Check the flat qualifier from the correct member
[libs/gl.git] / source / core / clipplane.cpp
diff --git a/source/core/clipplane.cpp b/source/core/clipplane.cpp
deleted file mode 100644 (file)
index fe784d2..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-#include <msp/strings/format.h>
-#include "clipplane.h"
-#include "programdata.h"
-
-namespace Msp {
-namespace GL {
-
-ClipPlane::ClipPlane():
-       eq(0, 0, 0, 1),
-       generation(0)
-{ }
-
-ClipPlane::ClipPlane(const Vector4 &e):
-       eq(e),
-       generation(0)
-{ }
-
-ClipPlane::ClipPlane(const Vector3 &p, const Vector3 &d):
-       eq(compose(d, -dot(p, d))),
-       generation(0)
-{ }
-
-void ClipPlane::set_equation(const Vector4 &e)
-{
-       eq = e;
-       ++generation;
-}
-
-void ClipPlane::set_plane(const Vector3 &p, const Vector3 &d)
-{
-       Vector3 nd = normalize(d);
-       set_equation(compose(nd, -dot(p, nd)));
-}
-
-void ClipPlane::update_shader_data(ProgramData &shdata, unsigned i) const
-{
-       shdata.uniform(format("clip_planes[%d].equation", i), eq);
-}
-
-} // namespace GL
-} // namespace Msp