MCPcopy Create free account
hub / github.com/axmolengine/axmol / addImage

Method addImage

core/renderer/TextureCache.cpp:435–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

433}
434
435Texture2D* TextureCache::addImage(std::string_view path)
436{
437 return addImage(path, Texture2D::getDefaultAlphaPixelFormat());
438}
439
440Texture2D* TextureCache::addImage(std::string_view path, PixelFormat format)
441{

Callers 15

getWhiteTextureMethod · 0.95
getDummyTextureMethod · 0.95
reloadTextureMethod · 0.95
initWithDictionaryMethod · 0.45
getDefaultTextureFunction · 0.45
getTextureMethod · 0.45
initWithTilesetInfoMethod · 0.45
initWithStringMethod · 0.45
initWithTileFileMethod · 0.45
createMethod · 0.45
newFontAtlasMethod · 0.45
initWithFileMethod · 0.45

Calls 15

parseNinePatchImageMethod · 0.95
getInstanceFunction · 0.85
fullPathForFilenameMethod · 0.80
initWithImageFileMethod · 0.80
initWithImageMethod · 0.80
updateWithImageMethod · 0.80
isNullMethod · 0.80
getBytesMethod · 0.80
emptyMethod · 0.45
findMethod · 0.45
endMethod · 0.45
emplaceMethod · 0.45

Tested by

no test coverage detected