ImDrawData: added AddDrawList() helper function. (#6406, #4879, #1878)

This commit is contained in:
ocornut
2023-07-12 16:57:38 +02:00
parent c649aca20a
commit 1a9ddd2396
4 changed files with 14 additions and 2 deletions

View File

@ -49,7 +49,7 @@ Other changes:
- ImDrawData: CmdLists[] array is now an ImVector<> owned by ImDrawData rather
than a pointer to internal state.
- This makes it easier for user to create their own or append to an existing draw data.
(#6406, #4879, #1878)
Added a ImDrawData::AddDrawList() helper function to do that. (#6406, #4879, #1878)
- This makes it easier to perform a deep-swap instead of a deep-copy, as array
ownership is now clear. (#6597, #6475, #6167, #5776, #5109, #4763, #3515, #1860)
- Syntax and allocation count are otherwise identical.