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

Method loadFromFile

src/eepp/graphics/texturefactory.cpp:89–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89Texture*
90TextureFactory::loadFromFile( const std::string& Filepath, const bool& Mipmap,
91 const Texture::ClampMode& ClampMode, const bool& CompressTexture,
92 const bool& KeepLocalCopy,
93 const Image::FormatConfiguration& imageformatConfiguration ) {
94 TextureLoader myTex( Filepath, Mipmap, ClampMode, CompressTexture, KeepLocalCopy );
95 myTex.setFormatConfiguration( imageformatConfiguration );
96 myTex.load();
97 return myTex.getTexture();
98}
99
100Texture* TextureFactory::pushTexture( const std::string& Filepath, const Uint32& TexId,
101 const unsigned int& Width, const unsigned int& Height,

Callers

nothing calls this directly

Calls 3

loadMethod · 0.45
getTextureMethod · 0.45

Tested by

no test coverage detected