diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2018-10-29 10:00:32 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-29 10:00:32 -0400 |
commit | 0ec0f705b66f1d527e24ddd5f99bd29e402a6bb0 (patch) | |
tree | fec6a477145188b9dda3713c8ff8992a2f60b030 /support/magicleap/Servo2D/code/inc.gen/SceneDescriptor.h | |
parent | e580250d5d99060b0ee8d88e3ff66b6d9ec24050 (diff) | |
parent | dab8f4a97fe8c122d24281ea7c62ccb3c7bba621 (diff) | |
download | servo-0ec0f705b66f1d527e24ddd5f99bd29e402a6bb0.tar.gz servo-0ec0f705b66f1d527e24ddd5f99bd29e402a6bb0.zip |
Auto merge of #21985 - asajeffrey:magicleap, r=jdm
Support building for Magic Leap.
<!-- Please describe your changes on the following line: -->
This PR gets Servo to build for Magic Leap, and provides a dummy Servo2D app.
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes do not require tests because it's a port to a new architecture
<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21985)
<!-- Reviewable:end -->
Diffstat (limited to 'support/magicleap/Servo2D/code/inc.gen/SceneDescriptor.h')
-rw-r--r-- | support/magicleap/Servo2D/code/inc.gen/SceneDescriptor.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/support/magicleap/Servo2D/code/inc.gen/SceneDescriptor.h b/support/magicleap/Servo2D/code/inc.gen/SceneDescriptor.h new file mode 100644 index 00000000000..db950700a13 --- /dev/null +++ b/support/magicleap/Servo2D/code/inc.gen/SceneDescriptor.h @@ -0,0 +1,48 @@ +// -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- +// +// THE CONTENTS OF THIS FILE IS GENERATED BY CODE AND +// ANY MODIFICATIONS WILL BE OVERWRITTEN +// +// -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- + +// %BANNER_BEGIN% +// --------------------------------------------------------------------- +// %COPYRIGHT_BEGIN% +// +// Copyright (c) 2018 Magic Leap, Inc. All Rights Reserved. +// Use of this file is governed by the Creator Agreement, located +// here: https://id.magicleap.com/creator-terms +// +// %COPYRIGHT_END% +// --------------------------------------------------------------------- +// %BANNER_END% + +#pragma once + +#include <string> +#include <map> + +// data class +class SceneDescriptor { + public: + + typedef std::map<std::string /* exportedNodeName */, const std::string& /* exportedNodeId */> ExportedNodeReferences; + + SceneDescriptor(const char* exportedName, const char* id, const char* sceneGraphFilePath, const char* resourceModelFilePath, const ExportedNodeReferences& exportedNodeReferences, bool initiallyInstanced); + const std::string& getExportedName() const; + const std::string& getId() const; + const std::string& getSceneGraphPath() const; + const std::string& getResourceModelPath() const; + const ExportedNodeReferences & getExportedNodeReferences() const; + bool getInitiallyInstanced() const; + + private: + std::string exportedName_; + std::string id_; + std::string sceneGraphPath_; + std::string resourceModelPath_; + const ExportedNodeReferences& exportedNodeReferences_; + bool initiallyInstanced_; +}; + +typedef std::map<std::string /* exportedName */, const SceneDescriptor&> SceneDescriptorReferences; |