please see below code: I don't know why this is happenning
bool AppDelegate::applicationDidFinishLaunching() {
// initialize director
auto director = Director::getInstance();
auto glview = director->getOpenGLView();
if (!glview) {
**glview = GLViewImpl::createWithRect("NewCocosProject", Rect(0, 0, 960, 640));**
director->setOpenGLView(glview);
}
}
bool GLViewImpl::initWithRect(const std::string& viewName, Rect rect, float frameZoomFactor)
{
setViewName(viewName);
}
if I continue, I'll get this error:
could anyone help?
after 2 weeks struggle, I realized that, I created the coco project with PREBUILD library, then after I change source project it won't affect the library, so I get various funny errors, I download the latest coco studio again, when I create new project, it shows the option: prebuilt or source code, so I create with source code projects, then I can run it successfully.