]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/clipplane.cpp
Use default member initializers for simple types
[libs/gl.git] / source / core / clipplane.cpp
index fe784d256dbe5dfdf3c754fc3add92c458f96fd1..256f2beaaccafdf0ab83d4e72bee95cb330608c1 100644 (file)
@@ -5,19 +5,12 @@
 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)