X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fcore%2Fclipplane.cpp;h=256f2beaaccafdf0ab83d4e72bee95cb330608c1;hb=f501ffe2862fd8b4c5793542190e8e0a0d8de667;hp=3e0d5f6602beef43d414f68d97076f09f7c5f4c7;hpb=b877c737bc5f759e6da25f886ad965e4a274cf2a;p=libs%2Fgl.git diff --git a/source/core/clipplane.cpp b/source/core/clipplane.cpp index 3e0d5f66..256f2bea 100644 --- a/source/core/clipplane.cpp +++ b/source/core/clipplane.cpp @@ -1,25 +1,16 @@ #include #include "clipplane.h" -#include "gl.h" -#include "matrix.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) + eq(e) { } ClipPlane::ClipPlane(const Vector3 &p, const Vector3 &d): - eq(compose(d, -dot(p, d))), - generation(0) + eq(compose(d, -dot(p, d))) { } void ClipPlane::set_equation(const Vector4 &e)