summaryrefslogtreecommitdiff
path: root/ofxHelios/libs/libheliosdac
diff options
context:
space:
mode:
Diffstat (limited to 'ofxHelios/libs/libheliosdac')
-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
{