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

Method createEmptyTexture

src/eepp/graphics/texturefactory.cpp:34–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34Texture* TextureFactory::createEmptyTexture( const unsigned int& Width, const unsigned int& Height,
35 const unsigned int& Channels,
36 const Color& DefaultColor, const bool& Mipmap,
37 const Texture::ClampMode& ClampMode,
38 const bool& CompressTexture, const bool& KeepLocalCopy,
39 const std::string& Filename ) {
40 Image TmpImg( Width, Height, Channels, DefaultColor );
41 return loadFromPixels( TmpImg.getPixelsPtr(), Width, Height, Channels, Mipmap, ClampMode,
42 CompressTexture, KeepLocalCopy, Filename );
43}
44
45Texture* TextureFactory::loadFromPixels( const unsigned char* Pixels, const unsigned int& Width,
46 const unsigned int& Height, const unsigned int& Channels,

Callers 2

searchByNameMethod · 0.80
createMethod · 0.80

Calls 1

getPixelsPtrMethod · 0.45

Tested by

no test coverage detected