| 103 | } |
| 104 | |
| 105 | void TileMapAtlas::loadTGAfile(std::string_view file) |
| 106 | { |
| 107 | std::string fullPath = FileUtils::getInstance()->fullPathForFilename(file); |
| 108 | |
| 109 | // //Find the path of the file |
| 110 | // NSBundle *mainBndl = [Director sharedDirector].loadingBundle; |
| 111 | // String *resourcePath = [mainBndl resourcePath]; |
| 112 | // String * path = [resourcePath stringByAppendingPathComponent:file]; |
| 113 | |
| 114 | _TGAInfo = tgaLoad(fullPath.c_str()); |
| 115 | #if 1 |
| 116 | if (_TGAInfo->status != TGA_OK) |
| 117 | { |
| 118 | AXASSERT(0, "TileMapAtlasLoadTGA : TileMapAtlas cannot load TGA file"); |
| 119 | } |
| 120 | #endif |
| 121 | } |
| 122 | |
| 123 | // TileMapAtlas - Atlas generation / updates |
| 124 | void TileMapAtlas::setTile(const Color3B& tile, const Vec2& position) |
no test coverage detected