本文整理汇总了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;
}
示例2: main
int main(int argc, char *argv[])
{
AppDelegate app;
EGLView eglView;
eglView.init("MoonWarriors", 480, 720);
return Application::getInstance()->run();
}
示例3: main
int main(int argc, char *argv[])
{
AppDelegate app;
EGLView eglView;
eglView.init("Hello World",900,640);
return Application::getInstance()->run();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}