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

Method UnloadTexture

src/engine/client/graphics_threaded.cpp:320–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320void CGraphics_Threaded::UnloadTexture(CTextureHandle *pIndex)
321{
322 if(pIndex->IsNullTexture() || !pIndex->IsValid())
323 return;
324
325 CCommandBuffer::SCommand_Texture_Destroy Cmd;
326 Cmd.m_Slot = pIndex->Id();
327 AddCmd(Cmd);
328
329 FreeTextureIndex(pIndex);
330}
331
332IGraphics::CTextureHandle CGraphics_Threaded::LoadSpriteTexture(const CImageInfo &FromImageInfo, const CDataSprite *pSprite)
333{

Callers 15

LoadGameSkinMethod · 0.80
LoadEmoticonsSkinMethod · 0.80
LoadParticlesSkinMethod · 0.80
LoadHudSkinMethod · 0.80
LoadExtrasSkinMethod · 0.80
UnloadMethod · 0.80
UnloadMethod · 0.80
ChangeEntitiesPathMethod · 0.80
SetTextureScaleMethod · 0.80
ClearAssetListFunction · 0.80
ClearCustomItemsMethod · 0.80
RefreshMethod · 0.80

Calls 3

IsNullTextureMethod · 0.80
IsValidMethod · 0.45
IdMethod · 0.45

Tested by

no test coverage detected