| 441 | } |
| 442 | |
| 443 | void ImDrawList::_SetDrawListSharedData(ImDrawListSharedData* data) |
| 444 | { |
| 445 | if (_Data != NULL) |
| 446 | _Data->DrawLists.find_erase_unsorted(this); |
| 447 | _Data = data; |
| 448 | if (_Data != NULL) |
| 449 | _Data->DrawLists.push_back(this); |
| 450 | } |
| 451 | |
| 452 | // Initialize before use in a new frame. We always have a command ready in the buffer. |
| 453 | // In the majority of cases, you would want to call PushClipRect() and PushTexture() after this. |
no test coverage detected