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

Method getWhiteTexture

core/renderer/TextureCache.cpp:387–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385}
386
387Texture2D* TextureCache::getWhiteTexture()
388{
389 constexpr std::string_view key = "/white-texture"sv;
390 return getWhiteTexture(key, 0xFF);
391}
392
393Texture2D* TextureCache::getWhiteTexture(std::string_view key, uint8_t luma)
394{

Callers 2

setTextureMethod · 0.80
openMethod · 0.80

Calls 4

getTextureForKeyMethod · 0.95
addImageMethod · 0.95
initWithRawDataMethod · 0.80
releaseMethod · 0.45

Tested by

no test coverage detected