| 2246 | //----------------------------------------------------------------------------- |
| 2247 | |
| 2248 | void ImDrawData::Clear() |
| 2249 | { |
| 2250 | Valid = false; |
| 2251 | CmdListsCount = TotalIdxCount = TotalVtxCount = 0; |
| 2252 | CmdLists.resize(0); // The ImDrawList are NOT owned by ImDrawData but e.g. by ImGuiContext, so we don't clear them. |
| 2253 | DisplayPos = DisplaySize = FramebufferScale = ImVec2(0.0f, 0.0f); |
| 2254 | OwnerViewport = NULL; |
| 2255 | Textures = NULL; |
| 2256 | } |
| 2257 | |
| 2258 | // Important: 'out_list' is generally going to be draw_data->CmdLists, but may be another temporary list |
| 2259 | // as long at it is expected that the result will be later merged into draw_data->CmdLists[]. |
no test coverage detected