From e7001104dd4dfe8c6be7ca39d13a1cdb473bd74b Mon Sep 17 00:00:00 2001 From: dbr Date: Thu, 25 Feb 2021 23:08:50 +1100 Subject: [PATCH] Updated changelog for DrawListMut::add_image and legacy removal --- CHANGELOG.markdown | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CHANGELOG.markdown b/CHANGELOG.markdown index 3e6d013..151da71 100644 --- a/CHANGELOG.markdown +++ b/CHANGELOG.markdown @@ -4,6 +4,16 @@ - Removed legacy `ImGuiDragDropFlags` from `legacy.rs`, which were accidentally not cleared when they were remade in `drag_drop.rs` in v0.7.0. +- The remaining flags in `imgui::legacy` have been updated to be consistent with other flags in the project. + - `imgui::legacy::ImGuiInputTextFlags` is now `imgui::input_widgets::InputTextFlags` + - `imgui::legacy::ImGuiTreeNodeFlags` is now `imgui::widget::tree::TreeNodeFlags` + - `imgui::legacy::ImDrawListFlags` is now `imgui::draw_list::DrawListFlags` + +- `DrawListMut` has new methods to draw images + - The methods are `add_image`, `add_image_quad`, and `add_image_rounded`. The `imgui-examples/examples/custom_textures.rs` has been updated to show their usage. + - Additionally the `imgui::draw_list` module is now public, which contains the various draw list objects. While the `add_*` methods are preferred, `imgui::draw_list::Circle::new(&draw_list_mut, ...).build()` is equivalent + + ## [0.7.0] - 2021-02-04 - Upgrade to [Dear ImGui v1.80](https://github.com/ocornut/imgui/releases/tag/v1.80). (Note that the new table functionality is not yet supported, however)