auto view = CCEGLView::sharedOpenGLView(); view->setViewName("MyCustomView");
auto view = CCEGLView::sharedOpenGLView(); view->setViewName("MyCustomView"); auto director = CCDirector::sharedDirector(); director->setOpenGLView(view); director->setWindowTitle(view->getViewName());In this example, the setViewName method is used to set the view name to "MyCustomView". Then, the director is set to use this view and the view name is used as the window title for the director. Package/Library: Cocos2d-x