| 110 | } |
| 111 | |
| 112 | void RenderItem::addDrawItem(ISubWidget* _item, size_t _count) |
| 113 | { |
| 114 | // проверяем только в дебаге |
| 115 | #if MYGUI_DEBUG_MODE == 1 |
| 116 | for (const auto& item : mDrawItems) |
| 117 | { |
| 118 | MYGUI_ASSERT(item.first != _item, "DrawItem exist"); |
| 119 | } |
| 120 | #endif |
| 121 | |
| 122 | mDrawItems.emplace_back(_item, _count); |
| 123 | mNeedVertexCount += _count; |
| 124 | mOutOfDate = true; |
| 125 | |
| 126 | mVertexBuffer->setVertexCount(mNeedVertexCount); |
| 127 | } |
| 128 | |
| 129 | void RenderItem::reallockDrawItem(ISubWidget* _item, size_t _count) |
| 130 | { |
no test coverage detected