From: Steinar H. Gunderson Date: Sun, 13 Sep 2015 15:39:52 +0000 (+0200) Subject: Add default constructors to Point2D/RGBTuple/RGBATuple, for convenience. X-Git-Tag: 1.2.0~20 X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=1ec439c7fb975c09029adaa9090e7f35ce6484b8;hp=0df63ebb6d5c67be253bfa77ef3960c221ed9d44 Add default constructors to Point2D/RGBTuple/RGBATuple, for convenience. --- diff --git a/effect.h b/effect.h index fbe39d7..56c34d9 100644 --- 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) {}