// // This file contains the Tizen application entry point. // #include "../../Classes/AppDelegate.h" #include "cocos2d.h" USING_NS_CC; using namespace Tizen::Base; using namespace Tizen::Base::Collection; #ifdef __cplusplus extern "C" { #endif // __cplusplus void ApplicationInitialized(void) { AppDelegate* pAppDelegate = new AppDelegate; CCEGLView* eglView = CCEGLView::sharedOpenGLView(); eglView->setFrameSize(720, 1280); CCApplication::sharedApplication()->run(); } // // The entry function of Tizen application called by the operating system. // _EXPORT_ int OspMain(int argc, char *pArgv[]) { AppLog("Application started."); ArrayList args(SingleObjectDeleter); args.Construct(); for (int i = 0; i < argc; i++) { args.Add(new (std::nothrow) String(pArgv[i])); } CCOspApplication::SetApplicationInitializedCallback(ApplicationInitialized); result r = Tizen::App::Application::Execute(CCOspApplication::CreateInstance, &args); TryLog(r == E_SUCCESS, "[%s] Application execution failed", GetErrorMessage(r)); AppLog("Application finished."); return static_cast(r); } #ifdef __cplusplus } #endif // __cplusplus