MCPcopy Create free account
hub / github.com/ddnet/ddnet / GetSwitchTexture

Method GetSwitchTexture

src/game/editor/editor.cpp:7043–7048  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7041}
7042
7043IGraphics::CTextureHandle CEditor::GetSwitchTexture()
7044{
7045 if(!m_SwitchTexture.IsValid())
7046 m_SwitchTexture = Graphics()->LoadTexture("editor/switch.png", IStorage::TYPE_ALL, GetTextureUsageFlag());
7047 return m_SwitchTexture;
7048}
7049
7050IGraphics::CTextureHandle CEditor::GetTuneTexture()
7051{

Callers 1

RenderMethod · 0.80

Calls 3

GraphicsFunction · 0.85
LoadTextureMethod · 0.80
IsValidMethod · 0.45

Tested by

no test coverage detected