cocos2dx 图片平铺

cocos2dx 图片平铺,第1张

概述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 图片平铺所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1058255.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-25
下一篇 2022-05-25

发表评论

登录后才能评论

评论列表(0条)

保存