2014-10-23 22:41:29 +08:00
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "app.g.h"
|
2016-03-24 03:14:12 +08:00
|
|
|
|
#include "OpenGLES.h"
|
2014-10-23 22:41:29 +08:00
|
|
|
|
#include "openglespage.xaml.h"
|
|
|
|
|
|
2015-08-19 02:06:47 +08:00
|
|
|
|
namespace CocosAppWinRT
|
2014-10-23 22:41:29 +08:00
|
|
|
|
{
|
|
|
|
|
ref class App sealed
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
App();
|
|
|
|
|
virtual void OnLaunched(Windows::ApplicationModel::Activation::LaunchActivatedEventArgs^ e) override;
|
|
|
|
|
|
|
|
|
|
private:
|
2015-05-13 10:39:40 +08:00
|
|
|
|
|
|
|
|
|
#if WINAPI_FAMILY==WINAPI_FAMILY_PHONE_APP
|
|
|
|
|
Windows::UI::Xaml::Media::Animation::TransitionCollection^ _transitions;
|
|
|
|
|
Windows::Foundation::EventRegistrationToken _firstNavigatedToken;
|
|
|
|
|
|
|
|
|
|
void RootFrame_FirstNavigated(Platform::Object^ sender, Windows::UI::Xaml::Navigation::NavigationEventArgs^ e);
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
void OnSuspending(Platform::Object^ sender, Windows::ApplicationModel::SuspendingEventArgs^ e);
|
2015-08-19 02:06:47 +08:00
|
|
|
|
void OnResuming(Platform::Object ^sender, Platform::Object ^args);
|
2015-05-13 10:39:40 +08:00
|
|
|
|
|
2014-10-23 22:41:29 +08:00
|
|
|
|
OpenGLESPage^ mPage;
|
|
|
|
|
OpenGLES mOpenGLES;
|
|
|
|
|
};
|
|
|
|
|
}
|