| 195 | } |
| 196 | |
| 197 | void TextureAtlasLoader::loadFromPack( Pack* Pack, const std::string& FilePackPath ) { |
| 198 | if ( NULL != Pack && Pack->isOpen() && -1 != Pack->exists( FilePackPath ) ) { |
| 199 | mPack = Pack; |
| 200 | |
| 201 | ScopedBuffer buffer; |
| 202 | |
| 203 | Pack->extractFileToMemory( FilePackPath, buffer ); |
| 204 | |
| 205 | loadFromMemory( buffer.get(), buffer.length(), FilePackPath ); |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | void TextureAtlasLoader::loadFromMemory( const Uint8* Data, const Uint32& DataSize, |
| 210 | const std::string& TextureAtlasName ) { |
no test coverage detected