MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / GetBlankTextureRef

Method GetBlankTextureRef

Source/Graphics/textures.cpp:2584–2589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2582}
2583
2584const TextureRef Textures::GetBlankTextureRef() {
2585 if (!blank_texture_ref.valid()) {
2586 blank_texture_ref = Engine::Instance()->GetAssetManager()->LoadSync<TextureAsset>("Data/Textures/diffuse.tga", PX_SRGB, 0x0);
2587 }
2588 return blank_texture_ref->GetTextureRef();
2589}
2590
2591const TextureAssetRef Textures::GetBlankTextureAssetRef() {
2592 if (!blank_texture_ref.valid()) {

Callers 2

ItemObjectMethod · 0.80
LoadMethod · 0.80

Calls 3

GetAssetManagerMethod · 0.80
GetTextureRefMethod · 0.80
validMethod · 0.45

Tested by

no test coverage detected