diff options
author | cnlohr <lohr85@gmail.com> | 2017-03-08 00:30:48 -0500 |
---|---|---|
committer | cnlohr <lohr85@gmail.com> | 2017-03-08 00:30:48 -0500 |
commit | 394cbc465e776137834eea830038b43ea98f6268 (patch) | |
tree | 29e60f5257db7377236a1cd76b540685b76a7b8b /include/libsurvive/survive.h | |
parent | 57e82519b4844620851784e7682a2c562cb06d47 (diff) | |
download | libsurvive-394cbc465e776137834eea830038b43ea98f6268.tar.gz libsurvive-394cbc465e776137834eea830038b43ea98f6268.tar.bz2 |
Switch types over to avoiding extra struct keyword. Switch poses to "SurvivePose" type.
Diffstat (limited to 'include/libsurvive/survive.h')
-rw-r--r-- | include/libsurvive/survive.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/libsurvive/survive.h b/include/libsurvive/survive.h index 536c7fb..20e50ca 100644 --- a/include/libsurvive/survive.h +++ b/include/libsurvive/survive.h @@ -4,14 +4,14 @@ #include <stdint.h> #include "poser.h" -struct SurviveContext; +typedef struct SurviveContext SurviveContext; //DANGER: This structure may be redefined. Note that it is logically split into 64-bit chunks //for optimization on 32- and 64-bit systems. struct SurviveObject { - struct SurviveContext * ctx; + SurviveContext * ctx; char codename[4]; //3 letters, null-terminated. Currently HMD, WM0, WM1. char drivername[4]; //3 letters for driver. Currently "HTC" @@ -27,8 +27,8 @@ struct SurviveObject //Pose Information, also "resolver" field. FLT PoseConfidence; //0..1 - FLT Position[3]; - FLT Rotation[4]; + SurvivePose OutPose; + SurvivePose FromLHPose[NUM_LIGHTHOUSES]; //Optionally filled out by poser, contains computed position from each lighthouse. void * PoserData; //Initialized to zero, configured by poser, can be anything the poser wants. PoserCB * PoserFn; |