aboutsummaryrefslogtreecommitdiffstats
path: root/support/magicleap/Servo2D/code/inc/Servo2D.h
diff options
context:
space:
mode:
authorAlan Jeffrey <ajeffrey@mozilla.com>2019-08-09 14:59:13 -0500
committerAlan Jeffrey <ajeffrey@mozilla.com>2019-08-09 15:02:53 -0500
commitdeb06ffcec22c6fad7245e5054971c65d70fe9dd (patch)
treef1edff9bbab129bdf6bce034980e90fac5155c35 /support/magicleap/Servo2D/code/inc/Servo2D.h
parent6775c69da128608fa6f7f11e19232c05a3b92365 (diff)
downloadservo-deb06ffcec22c6fad7245e5054971c65d70fe9dd.tar.gz
servo-deb06ffcec22c6fad7245e5054971c65d70fe9dd.zip
Updated Servo2D to LRE v0.22.0
Diffstat (limited to 'support/magicleap/Servo2D/code/inc/Servo2D.h')
-rw-r--r--support/magicleap/Servo2D/code/inc/Servo2D.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/support/magicleap/Servo2D/code/inc/Servo2D.h b/support/magicleap/Servo2D/code/inc/Servo2D.h
index 1e526bb2b94..2c1e0c8fd9a 100644
--- a/support/magicleap/Servo2D/code/inc/Servo2D.h
+++ b/support/magicleap/Servo2D/code/inc/Servo2D.h
@@ -2,10 +2,13 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
-#include <GLES/gl.h>
#include <lumin/LandscapeApp.h>
#include <lumin/Prism.h>
#include <lumin/event/ServerEvent.h>
+#include <SceneDescriptor.h>
+#include <PrismSceneManager.h>
+
+#include <GLES/gl.h>
#include <lumin/event/GestureInputEventData.h>
#include <lumin/event/KeyInputEventData.h>
#include <lumin/event/ControlTouchPadInputEventData.h>
@@ -17,7 +20,6 @@
#include <lumin/ui/node/UiButton.h>
#include <lumin/ui/node/UiPanel.h>
#include <lumin/ui/node/UiTextEdit.h>
-#include <SceneDescriptor.h>
typedef struct Opaque ServoInstance;
@@ -85,25 +87,20 @@ protected:
int deInit() override;
/**
- * Returns the size of the Prism, default = +/- (1.0f, 1.0f, 1.0f) meters.
+ * Returns the initial size of the Prism
* Used in createPrism().
*/
- const glm::vec3 getInitialPrismExtents() const;
+ const glm::vec3 getInitialPrismSize() const;
/**
* Creates the prism, updates the private variable prism_ with the created prism.
*/
- int createInitialPrism();
+ void createInitialPrism();
/**
* Initializes and creates the scene of all scenes marked as initially instanced
*/
- void instanceInitialScenes();
-
- /**
- * Initializes and creates the scene of the scene and instances it into the prism
- */
- lumin::Node* instanceScene(const SceneDescriptor & sceneToInit);
+ void spawnInitialScenes();
/**
* Run application login
@@ -133,6 +130,7 @@ protected:
private:
lumin::Prism* prism_ = nullptr; // represents the bounded space where the App renders.
+ PrismSceneManager* prismSceneManager_ = nullptr;
lumin::PlanarResource* plane_ = nullptr; // the plane we're rendering into
lumin::QuadNode* content_node_ = nullptr; // the node containing the plane
lumin::ui::UiPanel* content_panel_ = nullptr; // the panel containing the node