概述Texture2D *texture = Director::getInstance() -> getTextureCache() -> addImage("Santa.png");Texture2D::TexParams tp = {GL_LINEAR, GL_LINEAR, GL_REPEAT, GL_REPEAT};texture -> setTexParameters(tp);aut @H_419_0@Texture2D *texture = Director::getInstance() -> getTextureCache() -> addImage("Santa.png");Texture2D::TexParams tp = {GL_liNEAR,GL_liNEAR,GL_REPEAT,GL_REPEAT};texture -> setTexParameters(tp);auto sprite = Sprite::createWithTexture(texture,Rect(0,visibleSize.wIDth,visibleSize.height));sprite->setposition(Vec2(visibleSize.wIDth/2 + origin.x,visibleSize.height/2 + origin.y));this->addChild(sprite,0); 总结
以上是内存溢出为你收集整理的cocos2dx 图片平铺全部内容,希望文章能够帮你解决cocos2dx 图片平铺所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
评论列表(0条)