| 61 | } |
| 62 | |
| 63 | bool AtlasNode::initWithTileFile(std::string_view tile, int tileWidth, int tileHeight, int itemsToRender) |
| 64 | { |
| 65 | AXASSERT(!tile.empty(), "file size should not be empty"); |
| 66 | Texture2D* texture = _director->getTextureCache()->addImage(tile); |
| 67 | return initWithTexture(texture, tileWidth, tileHeight, itemsToRender); |
| 68 | } |
| 69 | |
| 70 | bool AtlasNode::initWithTexture(Texture2D* texture, int tileWidth, int tileHeight, int itemsToRender) |
| 71 | { |
no test coverage detected