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

Method setTexture

MyGUIEngine/src/MyGUI_RenderItem.cpp:151–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149 }
150
151 void RenderItem::setTexture(ITexture* _value)
152 {
153 if (mTexture == _value)
154 return;
155
156 MYGUI_DEBUG_ASSERT(mVertexBuffer->getVertexCount() == 0, "change texture only empty buffer");
157 MYGUI_DEBUG_ASSERT(mNeedVertexCount == 0, "change texture only empty buffer");
158
159 mTexture = _value;
160 }
161
162 ITexture* RenderItem::getTexture() const
163 {

Callers 2

Calls 1

getVertexCountMethod · 0.45

Tested by

no test coverage detected