示例#1
0
int APIENTRY _tWinMain(HINSTANCE hInstance,
                       HINSTANCE hPrevInstance,
                       LPTSTR    lpCmdLine,
                       int       nCmdShow)
{
    UNREFERENCED_PARAMETER(hPrevInstance);
    UNREFERENCED_PARAMETER(lpCmdLine);

#ifdef USE_WIN32_CONSOLE
    AllocConsole();
    freopen("CONIN$", "r", stdin);
    freopen("CONOUT$", "w", stdout);
    freopen("CONOUT$", "w", stderr);
#endif

    // create the application instance
    AppDelegate app;
    EGLView eglView;
    eglView.init("TestCPP",320,480);

    int ret = Application::getInstance()->run();

#ifdef USE_WIN32_CONSOLE
    FreeConsole();
#endif

    return ret;
}
示例#2
0
文件: main.cpp 项目: 0x0c/cocos2d-x
int main(int argc, char *argv[])
{
    AppDelegate app;
    EGLView eglView;
    eglView.init("MoonWarriors", 480, 720);
    return Application::getInstance()->run();
}
示例#3
0
文件: main.cpp 项目: 0x0c/cocos2d-x
int main(int argc, char *argv[])
{
    AppDelegate app;
    EGLView eglView;
    eglView.init("Hello World",900,640);
    return Application::getInstance()->run();
}
示例#4
0
int main(int argc, char **argv)
{
    // create the application instance
    AppDelegate app;
    EGLView eglView;
    eglView.init("Cocos2d-x Game Using LUA",288 * 2, 512 * 2);
    return Application::getInstance()->run();
}
示例#5
0
文件: main.cpp 项目: 0x0c/cocos2d-x
int main(int argc, char **argv)
{
    // create the application instance
    AppDelegate app;
    EGLView eglView;
    eglView.init("HelloCpp",900,640);
    return Application::getInstance()->run();
}
示例#6
0
int main(int argc, char **argv)
{
    // create the application instance
    AppDelegate app;
    EGLView eglView;
    eglView.init("TestCPP",240, 320);
    Application::getInstance()->setAnimationInterval(1.0f/60.0f);
    return Application::getInstance()->run();
}
示例#7
0
int APIENTRY _tWinMain(HINSTANCE hInstance,
                       HINSTANCE hPrevInstance,
                       LPTSTR    lpCmdLine,
                       int       nCmdShow)
{
    UNREFERENCED_PARAMETER(hPrevInstance);
    UNREFERENCED_PARAMETER(lpCmdLine);

    // create the application instance
    AppDelegate app;
    EGLView eglView;
    eglView.init("ShootFly",640,960);
    return Application::getInstance()->run();
}
示例#8
0
int APIENTRY _tWinMain(HINSTANCE hInstance,
                       HINSTANCE hPrevInstance,
                       LPTSTR    lpCmdLine,
                       int       nCmdShow)
{
    UNREFERENCED_PARAMETER(hPrevInstance);
    UNREFERENCED_PARAMETER(lpCmdLine);

    // create the application instance
    AppDelegate app;
	EGLView* eglView = new EGLView();
	eglView->init("Tilter2dx", 480, 320);
    return Application::getInstance()->run();
}
示例#9
0
文件: main.cpp 项目: adeka/Simplexity
int APIENTRY _tWinMain(HINSTANCE hInstance,
                       HINSTANCE hPrevInstance,
                       LPTSTR    lpCmdLine,
                       int       nCmdShow)
{
    UNREFERENCED_PARAMETER(hPrevInstance);
    UNREFERENCED_PARAMETER(lpCmdLine);

    // create the application instance
    AppDelegate app;
    EGLView eglView;
	srand(time(0));
    eglView.init("TestCPP",1620,900);
    return Application::getInstance()->run();
}
示例#10
0
int APIENTRY _tWinMain(HINSTANCE hInstance,
					   HINSTANCE hPrevInstance,
					   LPTSTR    lpCmdLine,
					   int       nCmdShow)
{
	UNREFERENCED_PARAMETER(hPrevInstance);
	UNREFERENCED_PARAMETER(lpCmdLine);

#ifdef WIN32
	//CreateConsole();
#endif

	// create the application instance
	AppDelegate app;
    EGLView eglView;
    eglView.init("TestCPP",960,540);
	return Application::getInstance()->run();
}