From ee0fd0be34cd6715b704be534b7e97087905571f Mon Sep 17 00:00:00 2001 From: Justin Berger Date: Sun, 11 Mar 2018 16:24:13 -0600 Subject: Redirected posers to used passed in callbacks --- include/libsurvive/poser.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/libsurvive/poser.h') diff --git a/include/libsurvive/poser.h b/include/libsurvive/poser.h index 7e05184..57a8599 100644 --- a/include/libsurvive/poser.h +++ b/include/libsurvive/poser.h @@ -17,11 +17,20 @@ typedef enum PoserType_t POSERDATA_DISASSOCIATE, //If you get this, it doesn't contain data. It just tells you to please disassociate from the current SurviveObject and delete your poserdata. } PoserType; +typedef void (*poser_raw_pose_func)(SurviveObject *so, uint8_t lighthouse, FLT *pose, void *user); +typedef void (*poser_lighthouse_pose_func)(SurviveObject *so, uint8_t lighthouse, SurvivePose *pose, void *user); + typedef struct { PoserType pt; + poser_raw_pose_func rawposeproc; + poser_lighthouse_pose_func lighthouseposeproc; + void *userdata; } PoserData; +void PoserData_poser_raw_pose_func(PoserData *poser_data, SurviveObject *so, uint8_t lighthouse, FLT *pose); +void PoserData_lighthouse_pose_func(PoserData *poser_data, SurviveObject *so, uint8_t lighthouse, SurvivePose *pose); + typedef struct { PoserData hdr; -- cgit v1.2.3