mirror of https://github.com/axmolengine/axmol.git
22 lines
488 B
C++
22 lines
488 B
C++
|
#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();
|
|||
|
}
|