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

Method DeleteTextContainer

src/engine/client/text.cpp:2088–2098  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2086 }
2087
2088 void DeleteTextContainer(STextContainerIndex &TextContainerIndex) override
2089 {
2090 if(!TextContainerIndex.Valid())
2091 return;
2092
2093 STextContainer &TextContainer = GetTextContainer(TextContainerIndex);
2094 if(Graphics()->IsTextBufferingEnabled())
2095 Graphics()->DeleteBufferContainer(TextContainer.m_StringInfo.m_QuadBufferContainerIndex, true);
2096 Graphics()->DeleteQuadContainer(TextContainer.m_StringInfo.m_SelectionQuadContainerIndex);
2097 FreeTextContainer(TextContainerIndex);
2098 }
2099
2100 void UploadTextContainer(STextContainerIndex TextContainerIndex) override
2101 {

Callers 15

ResetUIElementMethod · 0.80
DoLabelStreamedMethod · 0.80
OnResetMethod · 0.80
OnWindowResizeMethod · 0.80
RenderServerBroadcastMethod · 0.80
DoBroadcastMethod · 0.80
ResetHudContainersMethod · 0.80
OnStateChangeMethod · 0.80
OnWindowResizeMethod · 0.80
UpdateMethod · 0.80
ResetMethod · 0.80

Calls 5

GraphicsFunction · 0.85
DeleteBufferContainerMethod · 0.80
DeleteQuadContainerMethod · 0.80
ValidMethod · 0.45

Tested by

no test coverage detected