MCPcopy Create free account
hub / github.com/axmolengine/axmol / create

Method create

core/2d/TileMapAtlas.cpp:41–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39// implementation TileMapAtlas
40
41TileMapAtlas* TileMapAtlas::create(std::string_view tile, std::string_view mapFile, int tileWidth, int tileHeight)
42{
43 TileMapAtlas* ret = new TileMapAtlas();
44 if (ret->initWithTileFile(tile, mapFile, tileWidth, tileHeight))
45 {
46 ret->autorelease();
47 return ret;
48 }
49 AX_SAFE_DELETE(ret);
50 return nullptr;
51}
52
53bool TileMapAtlas::initWithTileFile(std::string_view tile, std::string_view mapFile, int tileWidth, int tileHeight)
54{

Callers

nothing calls this directly

Calls 2

autoreleaseMethod · 0.80
initWithTileFileMethod · 0.45

Tested by

no test coverage detected