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

Method reallockDrawItem

MyGUIEngine/src/MyGUI_RenderItem.cpp:129–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127 }
128
129 void RenderItem::reallockDrawItem(ISubWidget* _item, size_t _count)
130 {
131 for (auto& item : mDrawItems)
132 {
133 if (item.first == _item)
134 {
135 // если нужно меньше, то ниче не делаем
136 if (item.second < _count)
137 {
138 mNeedVertexCount -= item.second;
139 mNeedVertexCount += _count;
140 item.second = _count;
141 mOutOfDate = true;
142
143 mVertexBuffer->setVertexCount(mNeedVertexCount);
144 }
145 return;
146 }
147 }
148 MYGUI_EXCEPT("DrawItem not found");
149 }
150
151 void RenderItem::setTexture(ITexture* _value)
152 {

Callers 3

setPointsMethod · 0.80
_updateViewMethod · 0.80
checkVertexSizeMethod · 0.80

Calls 1

setVertexCountMethod · 0.45

Tested by

no test coverage detected