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

Method addDrawItem

MyGUIEngine/src/MyGUI_RenderItem.cpp:112–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 6

createDrawItemMethod · 0.80
createDrawItemMethod · 0.80
setFontNameMethod · 0.80
createDrawItemMethod · 0.80
createDrawItemMethod · 0.80
createDrawItemMethod · 0.80

Calls 1

setVertexCountMethod · 0.45

Tested by

no test coverage detected