]> 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 3e0d5f6602beef43d414f68d97076f09f7c5f4c7..256f2beaaccafdf0ab83d4e72bee95cb330608c1 100644 (file)
@@ -1,25 +1,16 @@
 #include <msp/strings/format.h>
 #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)