12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #ifndef CCVRGenericHeadTracker_hpp
- #define CCVRGenericHeadTracker_hpp
- #include "vr/CCVRProtocol.h"
- #include "math/Vec3.h"
- #include "math/Mat4.h"
- NS_CC_BEGIN
- class CC_DLL VRGenericHeadTracker : public VRIHeadTracker
- {
- public:
- VRGenericHeadTracker();
- virtual ~VRGenericHeadTracker();
- virtual Vec3 getLocalPosition();
- virtual Mat4 getLocalRotation();
- protected:
- void startTracking();
- void stopTracking();
- Vec3 _localPosition;
- Mat4 _deviceToDisplay;
- Mat4 _worldToInertialReferenceFrame;
- void* _motionMgr;
- };
- NS_CC_END
- #endif
|