MCPcopy Create free account
hub / github.com/SpartanJ/eepp / loadFromPack

Method loadFromPack

src/eepp/graphics/textureatlasloader.cpp:197–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197void 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
209void TextureAtlasLoader::loadFromMemory( const Uint8* Data, const Uint32& DataSize,
210 const std::string& TextureAtlasName ) {

Callers 1

loadFromStreamMethod · 0.45

Calls 5

isOpenMethod · 0.45
existsMethod · 0.45
extractFileToMemoryMethod · 0.45
getMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected