axmol/tests/cpp-tests/proj.win8.1-universal/cpp-tests.Shared/App.xaml.cpp

22 lines
488 B
C++
Raw Normal View History

#include "pch.h"
#include "OpenGLESPage.xaml.h"
using namespace cpp_tests;
App::App()
{
InitializeComponent();
}
void App::OnLaunched(Windows::ApplicationModel::Activation::LaunchActivatedEventArgs^ e)
{
if (mPage == nullptr)
{
mPage = ref new OpenGLESPage(&mOpenGLES);
}
// Place the page in the current window and ensure that it is active.
Windows::UI::Xaml::Window::Current->Content = mPage;
Windows::UI::Xaml::Window::Current->Activate();
}