MCPcopy Create free account
hub / github.com/MyGUI/mygui / checkVertexSize

Method checkVertexSize

MyGUIEngine/src/MyGUI_EditText.cpp:148–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146 }
147
148 void EditText::checkVertexSize()
149 {
150 // reallocate if we need more vertices (extra vertices for selection * 2 and cursor)
151 size_t need = (mUtf32Caption.size() * (mShadow ? 3 : 2) + 2) * VertexQuad::VertexCount;
152 if (mCountVertex < need)
153 {
154 mCountVertex = need + SIMPLETEXT_COUNT_VERTEX;
155 if (nullptr != mRenderItem)
156 mRenderItem->reallockDrawItem(this, mCountVertex);
157 }
158 }
159
160 unsigned int EditText::getMixedNativeAlpha(float secondAlpha) const
161 {

Callers

nothing calls this directly

Calls 2

reallockDrawItemMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected