summaryrefslogtreecommitdiff
path: root/ofxHelios/libs
diff options
context:
space:
mode:
authorTim Redfern <tim@getdrop.com>2018-01-29 00:50:32 +0000
committerTim Redfern <tim@getdrop.com>2018-01-29 00:50:32 +0000
commitee4db4b804443bcad410c30be88bcdce7abf6008 (patch)
tree518a7cf9be87c246acc1cff4e2c3a51111d1c782 /ofxHelios/libs
parent1743eab34f244a7ffff8e56d866a3e410df3bdbb (diff)
multi shapes
Diffstat (limited to 'ofxHelios/libs')
-rw-r--r--ofxHelios/libs/libheliosdac/includes/HeliosDac.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/ofxHelios/libs/libheliosdac/includes/HeliosDac.h b/ofxHelios/libs/libheliosdac/includes/HeliosDac.h
index ed1c5fc..333789d 100644
--- a/ofxHelios/libs/libheliosdac/includes/HeliosDac.h
+++ b/ofxHelios/libs/libheliosdac/includes/HeliosDac.h
@@ -66,7 +66,7 @@ cannot receive a new frame until the currently playing frame finishes, freeing u
#endif
//point data structure
-typedef struct
+struct HeliosPoint
{
std::uint16_t x; //12 bit (from 0 to 0xFFF)
std::uint16_t y; //12 bit (from 0 to 0xFFF)
@@ -74,7 +74,15 @@ typedef struct
std::uint8_t g; //8 bit (from 0 to 0xFF)
std::uint8_t b; //8 bit (from 0 to 0xFF)
std::uint8_t i; //8 bit (from 0 to 0xFF)
-} HeliosPoint;
+ HeliosPoint(
+ std::uint16_t _x,
+ std::uint16_t _y,
+ std::uint8_t _r,
+ std::uint8_t _g,
+ std::uint8_t _b,
+ std::uint8_t _i
+ ) : x(_x),y(_y),r(_r),g(_g),b(_b),i(_i) { }
+};
class HeliosDac
{