mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
5 lines
165 B
JavaScript
5 lines
165 B
JavaScript
---------------------------
|
|
var texture = cc.textureCache.addImage("hello.png");
|
|
var textureAtlas = new cc.TextureAtlas();
|
|
textureAtlas.initWithTexture(texture, 3);
|