cocos2d-x中TextAtlas艺术字create函数各参数的含义
来源:互联网 发布:金山网络官网 编辑:程序博客网 时间:2024/05/16 18:10
今天在代码里面创建艺术字的时候,踩了坑。一直不理解create函数五个参数的含义,网上找的各有各的说法,部分都是错的,最后实践得出结论
static TextAtlas* create(const std::string& stringValue,
const std::string& charMapFile,
int itemWidth,
int itemHeight,
const std::string& startCharMap);
1.stringValue 是指你需要显示的字符串
2.charMapFile 你的艺术字图片的路径
3.itemWidth *******注意******** 单个字符的长度
4.itemHeight *******注意******** 单个字符的宽度
5.startCharMap 字符索引的起始字符 比如你的图片是0123456789,那么起始字符是0, 如果你的图片是./0123456789,那么起始字符是.(当然根据实际需要字符和图片也不需要一一对应)。
相信我,没错。
阅读全文
0 0
- cocos2d-x中TextAtlas艺术字create函数各参数的含义
- Cocos2d-x TextAtlas的使用
- Cocos2d-x中createEdgeBox()的各项参数的含义
- cocos2d-x-3.13\cocos\ui控件TextAtlas
- php中error_report函数的含义及各参数含义
- php中error_report函数的含义及各参数含义
- 函数参数中‘*’的含义
- Cocos2d-x-3.x create()函数重载
- Cocos2d-x中CCSprite的Create流程--h
- oracle函数参数中=>的含义
- Cocos2d-x中Layer的生命周期函数
- cocos2d-x屏幕适配 三个参数含义
- oracle中用Create Table创建表时,Storage中参数的含义!
- cocos2d-x 两阶段构造器以及静态create()函数
- Cocos2d-x 3.0final -关于V3中CallFunc::create的新的使用方法
- Cocos2d-x 3.0-关于V3中CallFunc::create的新的使用方法
- WTL中CDialogResize各参数的含义
- php $_SERVER[] 中各参数的含义
- 和前端撕出逼格,撕的硬气
- 如何快速高效读懂1本书
- 由盛而衰的O2O,在明年还能笑傲江湖吗?
- 数据库连接池性能测试
- Java中List去重
- cocos2d-x中TextAtlas艺术字create函数各参数的含义
- numpy库中行与列的浅见
- 鼠标悬浮,产生变化
- 重磅!ABB 26亿美元收购GE工业系统业务
- 产品新人的10字生存手册
- 爬取媳妇微博数据(python)
- 内存核心频率、工作频率,等效频率、预读取技术详解
- HTML 超链接和路径
- 第三周:项目