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

Method loadFromMemory

src/eepp/graphics/texturefactory.cpp:67–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67Texture*
68TextureFactory::loadFromMemory( const unsigned char* ImagePtr, const unsigned int& Size,
69 const bool& Mipmap, const Texture::ClampMode& ClampMode,
70 const bool& CompressTexture, const bool& KeepLocalCopy,
71 const Image::FormatConfiguration& imageformatConfiguration ) {
72 TextureLoader myTex( ImagePtr, Size, Mipmap, ClampMode, CompressTexture, KeepLocalCopy );
73 myTex.setFormatConfiguration( imageformatConfiguration );
74 myTex.load();
75 return myTex.getTexture();
76}
77
78Texture*
79TextureFactory::loadFromStream( IOStream& Stream, const bool& Mipmap,

Callers

nothing calls this directly

Calls 3

loadMethod · 0.45
getTextureMethod · 0.45

Tested by

no test coverage detected