From 1ec439c7fb975c09029adaa9090e7f35ce6484b8 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 13 Sep 2015 17:39:52 +0200 Subject: [PATCH] Add default constructors to Point2D/RGBTuple/RGBATuple, for convenience. --- effect.h | 3 +++ 1 file changed, 3 insertions(+) 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) {} -- 2.39.2