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

Method loadFromPack

src/eepp/graphics/texturefactory.cpp:56–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56Texture*
57TextureFactory::loadFromPack( Pack* Pack, const std::string& FilePackPath, const bool& Mipmap,
58 const Texture::ClampMode& ClampMode, const bool& CompressTexture,
59 const bool& KeepLocalCopy,
60 const Image::FormatConfiguration& imageformatConfiguration ) {
61 TextureLoader myTex( Pack, FilePackPath, Mipmap, ClampMode, CompressTexture, KeepLocalCopy );
62 myTex.setFormatConfiguration( imageformatConfiguration );
63 myTex.load();
64 return myTex.getTexture();
65}
66
67Texture*
68TextureFactory::loadFromMemory( const unsigned char* ImagePtr, const unsigned int& Size,

Callers

nothing calls this directly

Calls 3

loadMethod · 0.45
getTextureMethod · 0.45

Tested by

no test coverage detected