jeudi 3 mars 2016

vs2015 coco2d-x 3.8 error reading characters of string

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);
}

below is screenshot

could anyone help?

Aucun commentaire:

Enregistrer un commentaire