| 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 | { |
no test coverage detected