]> git.tdb.fi Git - libs/gl.git/blobdiff - source/materials/light.h
Use default member initializers for simple types
[libs/gl.git] / source / materials / light.h
index 606ec67325812d535d305c5756ca82bcfb439528..b20ebae44d3fe714f0a7bc4365f160bf3ae9b7e9 100644 (file)
@@ -48,11 +48,12 @@ public:
        };
 
 protected:
-       Color color;
-       unsigned generation;
+       Color color = { 1.0f };
+       unsigned generation = 0;
 
+       Light() = default;
 public:
-       Light();
+       virtual ~Light() = default;
 
        /** Sets the color of the Light. */
        void set_color(const Color &);