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