X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fclipplane.h;h=9160e526cbb2e2d0bccdb25ac7fcb126d1c42c63;hb=e92de029768eef5f0fd744329e589161b46d0762;hp=98c633b70fd7933bedf39824aa0abe851b2f6412;hpb=7aaec9a70b8d7733429bec043f8e33e02956f266;p=libs%2Fgl.git diff --git a/source/core/clipplane.h b/source/core/clipplane.h index 98c633b7..9160e526 100644 --- a/source/core/clipplane.h +++ b/source/core/clipplane.h @@ -1,5 +1,5 @@ -#ifndef MSP_GL_CLIP_H_ -#define MSP_GL_CLIP_H_ +#ifndef MSP_GL_CLIPPLANE_H_ +#define MSP_GL_CLIPPLANE_H_ #include "vector.h" @@ -13,6 +13,7 @@ class ClipPlane { private: Vector4 eq; + unsigned generation; public: ClipPlane(); @@ -21,7 +22,9 @@ public: void set_equation(const Vector4 &); void set_plane(const Vector3 &, const Vector3 &); - void update_shader_data(ProgramData &, const Matrix &, unsigned) const; + void update_shader_data(ProgramData &, unsigned) const; + + unsigned get_generation() const { return generation; } }; } // namespace GL