2014-10-24 21:08:38 +08:00
|
|
|
|
#include "App.xaml.h"
|
2014-10-23 22:40:42 +08:00
|
|
|
|
#include "OpenGLESPage.xaml.h"
|
|
|
|
|
|
|
|
|
|
using namespace cocos2d;
|
|
|
|
|
|
|
|
|
|
App::App()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void App::OnLaunched(Windows::ApplicationModel::Activation::LaunchActivatedEventArgs^ e)
|
|
|
|
|
{
|
|
|
|
|
if (mPage == nullptr)
|
|
|
|
|
{
|
2014-10-24 21:08:38 +08:00
|
|
|
|
mPage = ref new OpenGLESPage(&mOpenGLES);
|
2014-10-23 22:40:42 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
|
}
|