diff options
Diffstat (limited to 'support/hololens/App.xaml.cpp')
-rw-r--r-- | support/hololens/App.xaml.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/support/hololens/App.xaml.cpp b/support/hololens/App.xaml.cpp new file mode 100644 index 00000000000..e084de34b43 --- /dev/null +++ b/support/hololens/App.xaml.cpp @@ -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(); +} |