diff options
| author | Tim Redfern <tim@getdrop.com> | 2018-01-29 00:50:32 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@getdrop.com> | 2018-01-29 00:50:32 +0000 |
| commit | ee4db4b804443bcad410c30be88bcdce7abf6008 (patch) | |
| tree | 518a7cf9be87c246acc1cff4e2c3a51111d1c782 /ofxHelios/libs/libheliosdac/includes | |
| parent | 1743eab34f244a7ffff8e56d866a3e410df3bdbb (diff) | |
multi shapes
Diffstat (limited to 'ofxHelios/libs/libheliosdac/includes')
| -rw-r--r-- | ofxHelios/libs/libheliosdac/includes/HeliosDac.h | 12 |
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 { |
