X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fclipplane.h;fp=source%2Fcore%2Fclipplane.h;h=0000000000000000000000000000000000000000;hb=f82ef715f0d7e1e7d0b93be4b7b89c8ce6bba40b;hp=a2b5625521f1f48463e22c9f06d7f5f5572782f5;hpb=271760e6099bf5f4ad90894697dab911c236a0a3;p=libs%2Fgl.git diff --git a/source/core/clipplane.h b/source/core/clipplane.h deleted file mode 100644 index a2b56255..00000000 --- a/source/core/clipplane.h +++ /dev/null @@ -1,32 +0,0 @@ -#ifndef MSP_GL_CLIPPLANE_H_ -#define MSP_GL_CLIPPLANE_H_ - -#include "vector.h" - -namespace Msp { -namespace GL { - -class ProgramData; - -class ClipPlane -{ -private: - Vector4 eq = { 0.0f, 0.0f, 0.0f, 1.0f }; - unsigned generation = 0; - -public: - ClipPlane() = default; - 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 &, unsigned) const; - - unsigned get_generation() const { return generation; } -}; - -} // namespace GL -} // namespace Msp - -#endif