axmol/templates/cpp-template-default/proj.tizen/src/main.cpp

21 lines
477 B
C++
Raw Normal View History

2016-05-03 11:02:22 +08:00
#include "AppDelegate.h"
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string>
#include <app.h>
USING_NS_CC;
int main(int argc, char **argv)
{
// create the application instance
AppDelegate app;
2016-05-03 11:02:22 +08:00
#ifdef TIZEN
Application::getInstance()->setMainArgs(argc, argv);//For Tizen 2.4, we need these two arguments.
#endif
Application::getInstance()->setDeviceOrientation(APP_DEVICE_ORIENTATION_90);
return Application::getInstance()->run();
}