mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 16:13:43 +02:00
Make WindowScriptingInterface available to tablet
This commit is contained in:
parent
0802bd2c21
commit
9170244312
1 changed files with 2 additions and 0 deletions
|
@ -26,6 +26,7 @@
|
|||
#include <GeometryUtil.h>
|
||||
#include <gl/GLHelpers.h>
|
||||
#include <scripting/HMDScriptingInterface.h>
|
||||
#include <scripting/WindowScriptingInterface.h>
|
||||
#include <ui/OffscreenQmlSurface.h>
|
||||
#include <ui/OffscreenQmlSurfaceCache.h>
|
||||
#include <ui/TabletScriptingInterface.h>
|
||||
|
@ -233,6 +234,7 @@ void Web3DOverlay::setupQmlSurface() {
|
|||
_webSurface->getSurfaceContext()->setContextProperty("Controller", DependencyManager::get<controller::ScriptingInterface>().data());
|
||||
_webSurface->getSurfaceContext()->setContextProperty("Pointers", DependencyManager::get<PointerScriptingInterface>().data());
|
||||
_webSurface->getSurfaceContext()->setContextProperty("Web3DOverlay", this);
|
||||
_webSurface->getSurfaceContext()->setContextProperty("Window", DependencyManager::get<WindowScriptingInterface>().data());
|
||||
|
||||
_webSurface->getSurfaceContext()->setContextProperty("pathToFonts", "../../");
|
||||
|
||||
|
|
Loading…
Reference in a new issue