]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/clipplane.h
Use default member initializers for simple types
[libs/gl.git] / source / core / clipplane.h
index 9160e526cbb2e2d0bccdb25ac7fcb126d1c42c63..a2b5625521f1f48463e22c9f06d7f5f5572782f5 100644 (file)
@@ -6,17 +6,16 @@
 namespace Msp {
 namespace GL {
 
-class Matrix;
 class ProgramData;
 
 class ClipPlane
 {
 private:
-       Vector4 eq;
-       unsigned generation;
+       Vector4 eq = { 0.0f, 0.0f, 0.0f, 1.0f };
+       unsigned generation = 0;
 
 public:
-       ClipPlane();
+       ClipPlane() = default;
        ClipPlane(const Vector4 &);
        ClipPlane(const Vector3 &, const Vector3 &);