diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libsurvive/poser.h | 9 |
1 files changed, 9 insertions, 0 deletions
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; |