aboutsummaryrefslogtreecommitdiffstats
path: root/support/magicleap/Servo2D/code
diff options
context:
space:
mode:
authorAlan Jeffrey <ajeffrey@mozilla.com>2019-04-25 12:54:09 -0500
committerAlan Jeffrey <ajeffrey@mozilla.com>2019-06-13 15:04:05 -0500
commit0b48ff496fc42dfff1ed7a3a3b15b78470a49c39 (patch)
tree2378af0aa6ce365ef1b353b7ed2b750e5b418374 /support/magicleap/Servo2D/code
parente381cebeb6cb9dbf7ca5555bcd40f427470e353a (diff)
downloadservo-0b48ff496fc42dfff1ed7a3a3b15b78470a49c39.tar.gz
servo-0b48ff496fc42dfff1ed7a3a3b15b78470a49c39.zip
Add Servo3D immersive demo for magicleap
Diffstat (limited to 'support/magicleap/Servo2D/code')
-rw-r--r--support/magicleap/Servo2D/code/src/Servo2D.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/support/magicleap/Servo2D/code/src/Servo2D.cpp b/support/magicleap/Servo2D/code/src/Servo2D.cpp
index a1859c6411d..2ba1d3a17cb 100644
--- a/support/magicleap/Servo2D/code/src/Servo2D.cpp
+++ b/support/magicleap/Servo2D/code/src/Servo2D.cpp
@@ -66,7 +66,7 @@ void keyboard(Servo2D* app, bool visible) {
}
// The functions Servo provides for hooking up to the ML.
-extern "C" ServoInstance* init_servo(EGLContext, EGLSurface, EGLDisplay,
+extern "C" ServoInstance* init_servo(EGLContext, EGLSurface, EGLDisplay, bool landscape,
Servo2D*, MLLogger, MLHistoryUpdate, MLURLUpdate, MLKeyboard,
const char* url, const char* args, int width, int height, float hidpi);
extern "C" void heartbeat_servo(ServoInstance*);
@@ -174,7 +174,9 @@ int Servo2D::init() {
EGLDisplay dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY);
// Hook into servo
- servo_ = init_servo(ctx, surf, dpy, this, logger, history, url, keyboard, uri_, args_, VIEWPORT_W, VIEWPORT_H, HIDPI);
+ servo_ = init_servo(ctx, surf, dpy, true,
+ this, logger, history, url, keyboard, uri_, args_,
+ VIEWPORT_W, VIEWPORT_H, HIDPI);
if (!servo_) {
ML_LOG(Error, "Servo2D Failed to init servo instance");
abort();