X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fclipplane.h;fp=source%2Fcore%2Fclipplane.h;h=98c633b70fd7933bedf39824aa0abe851b2f6412;hb=7aaec9a70b8d7733429bec043f8e33e02956f266;hp=0000000000000000000000000000000000000000;hpb=bec07999d95b76f4b47cffcc564d0cd0afc0435e;p=libs%2Fgl.git diff --git a/source/core/clipplane.h b/source/core/clipplane.h new file mode 100644 index 00000000..98c633b7 --- /dev/null +++ b/source/core/clipplane.h @@ -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