]> git.sesse.net Git - movit/commitdiff
Add default constructors to Point2D/RGBTuple/RGBATuple, for convenience.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 13 Sep 2015 15:39:52 +0000 (17:39 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 13 Sep 2015 15:39:52 +0000 (17:39 +0200)
effect.h

index fbe39d7274a421fd9f906ae809fdace3df7a8bc2..56c34d917c5c46084e89904ed76d938cc7782269 100644 (file)
--- a/effect.h
+++ b/effect.h
@@ -25,6 +25,7 @@ class Node;
 
 // Can alias on a float[2].
 struct Point2D {
+       Point2D() {}
        Point2D(float x, float y)
                : x(x), y(y) {}
 
@@ -33,6 +34,7 @@ struct Point2D {
 
 // Can alias on a float[3].
 struct RGBTriplet {
+       RGBTriplet() {}
        RGBTriplet(float r, float g, float b)
                : r(r), g(g), b(b) {}
 
@@ -41,6 +43,7 @@ struct RGBTriplet {
 
 // Can alias on a float[4].
 struct RGBATuple {
+       RGBATuple() {}
        RGBATuple(float r, float g, float b, float a)
                : r(r), g(g), b(b), a(a) {}