Metrics: Displaying all draw lists of a window (if it uses layer 0 and has already been appended to earlier in the frame).

This commit is contained in:
omar
2018-03-14 17:50:11 +01:00
parent 83ef61fa56
commit 207ad45983
2 changed files with 5 additions and 4 deletions

View File

@ -502,6 +502,7 @@ struct ImDrawDataBuilder
void Clear() { for (int n = 0; n < IM_ARRAYSIZE(Layers); n++) Layers[n].resize(0); }
void ClearFreeMemory() { for (int n = 0; n < IM_ARRAYSIZE(Layers); n++) Layers[n].clear(); }
int GetDrawListCount() const { int count = 0; for (int n = 0; n < IM_ARRAYSIZE(Layers); n++) count += Layers[n].Size; return count; }
IMGUI_API void FlattenIntoSingleLayer();
};