mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Hololens port
This commit is contained in:
parent
5beac079f6
commit
acde7e04cb
27 changed files with 1501 additions and 0 deletions
29
support/hololens/App.xaml.cpp
Normal file
29
support/hololens/App.xaml.cpp
Normal file
|
@ -0,0 +1,29 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* 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 "pch.h"
|
||||
#include "App.xaml.h"
|
||||
|
||||
using namespace hlservo;
|
||||
|
||||
App::App()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
void App::OnLaunched(Windows::ApplicationModel::Activation::LaunchActivatedEventArgs ^ e)
|
||||
{
|
||||
#if _DEBUG
|
||||
if (IsDebuggerPresent()) {
|
||||
DebugSettings->EnableFrameRateCounter = true;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (mPage == nullptr) {
|
||||
mPage = ref new OpenGLESPage(&mOpenGLES);
|
||||
}
|
||||
|
||||
Windows::UI::Xaml::Window::Current->Content = mPage;
|
||||
Windows::UI::Xaml::Window::Current->Activate();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue