当前位置: 首页>>代码示例>>C++>>正文


C++ EGLView::init方法代码示例

本文整理汇总了C++中EGLView::init方法的典型用法代码示例。如果您正苦于以下问题:C++ EGLView::init方法的具体用法?C++ EGLView::init怎么用?C++ EGLView::init使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在EGLView的用法示例。


在下文中一共展示了EGLView::init方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: _tWinMain

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;
}
开发者ID:Yongrui,项目名称:MyFlappyBird,代码行数:28,代码来源:main.cpp

示例2: main

int main(int argc, char *argv[])
{
    AppDelegate app;
    EGLView eglView;
    eglView.init("MoonWarriors", 480, 720);
    return Application::getInstance()->run();
}
开发者ID:0x0c,项目名称:cocos2d-x,代码行数:7,代码来源:main.cpp

示例3: main

int main(int argc, char *argv[])
{
    AppDelegate app;
    EGLView eglView;
    eglView.init("Hello World",900,640);
    return Application::getInstance()->run();
}
开发者ID:0x0c,项目名称:cocos2d-x,代码行数:7,代码来源:main.cpp

示例4: main

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();
}
开发者ID:Cocos2d-x-vn,项目名称:OpenBird,代码行数:8,代码来源:main.cpp

示例5: main

int main(int argc, char **argv)
{
    // create the application instance
    AppDelegate app;
    EGLView eglView;
    eglView.init("HelloCpp",900,640);
    return Application::getInstance()->run();
}
开发者ID:0x0c,项目名称:cocos2d-x,代码行数:8,代码来源:main.cpp

示例6: main

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();
}
开发者ID:PICHURRIAJUEGOS-,项目名称:moreneuron,代码行数:9,代码来源:main.cpp

示例7: _tWinMain

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();
}
开发者ID:BellyWong,项目名称:FlyShoots,代码行数:14,代码来源:main.cpp

示例8: _tWinMain

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();
}
开发者ID:smrutled,项目名称:Tilter2dx,代码行数:14,代码来源:main.cpp

示例9: _tWinMain

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();
}
开发者ID:adeka,项目名称:Simplexity,代码行数:15,代码来源:main.cpp

示例10: _tWinMain

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();
}
开发者ID:liangzhimy,项目名称:ForeverClient,代码行数:18,代码来源:main.cpp


注:本文中的EGLView::init方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。