cocos2dx 浏览器

Size visibleSize = Director::getInstance()->getVisibleSize();
    auto webview =cocos2d::experimental::ui::WebView::create();
    webview->setContentSize(visibleSize);
    webview->setAnchorPoint(Vec2(0.5, 0.5));
    webview->setPosition(visibleSize / 2);
    webview->loadURL("http:\\www.baidu.com");
    this->addChild(webview);
相关文章
相关标签/搜索