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

Method Reset

src/engine/client/text.cpp:900–923  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

898 STextContainerIndex m_ContainerIndex;
899
900 void Reset()
901 {
902 m_StringInfo.m_QuadBufferObjectIndex = m_StringInfo.m_QuadBufferContainerIndex = m_StringInfo.m_SelectionQuadContainerIndex = -1;
903 m_StringInfo.m_vCharacterQuads.clear();
904
905 m_AlignedStartX = m_AlignedStartY = m_X = m_Y = 0.0f;
906 m_Flags = m_LineCount = m_CharCount = m_GlyphCount = 0;
907 m_MaxLines = -1;
908 m_LineWidth = -1.0f;
909
910 m_RenderFlags = 0;
911
912 m_HasCursor = false;
913 m_ForceCursorRendering = false;
914 m_HasSelection = false;
915
916 m_SingleTimeUse = false;
917
918 m_BoundingBox = {0.0f, 0.0f, 0.0f, 0.0f};
919
920 m_aDebugText[0] = '\0';
921
922 m_ContainerIndex = STextContainerIndex{};
923 }
924};
925
926float CTextCursor::Height() const

Callers 3

FreeTextContainerMethod · 0.45
CreateTextContainerMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected