SLProject  4.3.020
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
SENSiOSOrientation.mm
Go to the documentation of this file.
1 #include "SENSiOSOrientation.h"
2 
4 {
6  //set update callback
7  [_orientationDelegate setUpdateCB:std::bind(&SENSiOSOrientation::updateOrientation, this, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4)];
8 }
9 
11 {
13  return _running;
14 }
15 
17 {
19  _running = false;
20 }
21 
23  float quatY,
24  float quatZ,
25  float quatW)
26 {
27  setOrientation({quatX, quatY, quatZ, quatW});
28 }
void setOrientation(Quat orientation)
void stop() override
void updateOrientation(float quatX, float quatY, float quatZ, float quatW)
bool start() override
SENSiOSOrientationDelegate * _orientationDelegate