]> git.tdb.fi Git - libs/gl.git/blobdiff - source/materials/pointlight.h
Use default member initializers for simple types
[libs/gl.git] / source / materials / pointlight.h
index 074c8c37b61d208cdd76cf9a97a59bfa8b47c9b7..1c37350439a61e8adac9d87581f6d453e365f1d0 100644 (file)
@@ -30,13 +30,9 @@ public:
        };
 
 private:
-       Vector3 position;
-       float attenuation[3];
+       Vector3 position = { 0.0f, 0.0f, 0.0f };
+       float attenuation[3] = { 1.0f, 0.0f, 0.1f };
 
-public:
-       PointLight();
-
-private:
        void update_matrix();
 
 public: