]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/clipplane.h
Rearrange soucre files into subdirectories
[libs/gl.git] / source / core / clipplane.h
diff --git a/source/core/clipplane.h b/source/core/clipplane.h
new file mode 100644 (file)
index 0000000..98c633b
--- /dev/null
@@ -0,0 +1,30 @@
+#ifndef MSP_GL_CLIP_H_
+#define MSP_GL_CLIP_H_
+
+#include "vector.h"
+
+namespace Msp {
+namespace GL {
+
+class Matrix;
+class ProgramData;
+
+class ClipPlane
+{
+private:
+       Vector4 eq;
+
+public:
+       ClipPlane();
+       ClipPlane(const Vector4 &);
+       ClipPlane(const Vector3 &, const Vector3 &);
+
+       void set_equation(const Vector4 &);
+       void set_plane(const Vector3 &, const Vector3 &);
+       void update_shader_data(ProgramData &, const Matrix &, unsigned) const;
+};
+
+} // namespace GL
+} // namespace Msp
+
+#endif