From ee4db4b804443bcad410c30be88bcdce7abf6008 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Mon, 29 Jan 2018 00:50:32 +0000 Subject: multi shapes --- ofxHelios/libs/libheliosdac/includes/HeliosDac.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'ofxHelios/libs') 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 { -- cgit v1.2.3