projects
/
movit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0df63eb
)
Add default constructors to Point2D/RGBTuple/RGBATuple, for convenience.
author
Steinar H. Gunderson
<sgunderson@bigfoot.com>
Sun, 13 Sep 2015 15:39:52 +0000
(17:39 +0200)
committer
Steinar H. Gunderson
<sgunderson@bigfoot.com>
Sun, 13 Sep 2015 15:39:52 +0000
(17:39 +0200)
effect.h
patch
|
blob
|
history
diff --git
a/effect.h
b/effect.h
index
fbe39d7
..
56c34d9
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) {}