2.2.0 Dear ImGui 1.91.5 + new backends.
Hexa.NET.ImGui Changes
- Updated to Dear ImGui 1.91.5
- Added backends for D3D10 and D3D9. #25 #17
- Added support for android and added an example. #17
- Fixes issues with MacOS backends #24
New Sponsors
🎉 Huge thanks to our newest supporters:
@qian-o, @NotNite and Mr Villa
Forwarded from https://github.com/ocornut/imgui/releases/tag/v1.91.5 (removed @ to avoid spam)
Changes (since v1.91.4)
Breaking Changes:
- Commented out pre-1.87 IO system (equivalent to using
IMGUI_DISABLE_OBSOLETE_KEYIO
orIMGUI_DISABLE_OBSOLETE_FUNCTIONS
before).io.KeyMap[]
andio.KeysDown[]
are removed (obsoleted February 2022).io.NavInputs[]
andImGuiNavInput
enum are removed (obsoleted July 2022).- Pre-1.87 backends are not supported:
- backends need to call
io.AddKeyEvent()
,io.AddMouseEvent()
instead of writing toio.KeysDown[]
,io.MouseDown[]
fields. - backends need to call
io.AddKeyAnalogEvent()
for gamepad values instead of writing toio.NavInputs[]
fields.
- backends need to call
- For more references:
- read ocornut/imgui#4921
- read Changelogs for 1.87 and 1.88. Read API BREAKING CHANGES section of imgui.cpp.
- If you have trouble updating a very old codebase using legacy backend-specific key codes:
consider updating to 1.91.4 first, then #define IMGUI_DISABLE_OBSOLETE_KEYIO, then update to latest. - Obsoleted
ImGuiKey_COUNT
(it was unusually error-prone/misleading since valid keys don't start at 0). Probably useImGuiKey_NamedKey_BEGIN
/ImGuiKey_NamedKey_END
instead?
- Fonts: removed const qualifiers from most font functions in prevision for upcoming fonts improvements.
Other changes:
- Selectable: selected
Selectable
useImGuiCol_Header
instead of an arbitrary lerp between_Header
and_HeaderHovered
which was introduced v1.91 (#8106, #1861) - Buttons: using
ImGuiItemFlags_ButtonRepeat
makes default button behavior use_PressedOnClick
instead of_PressedOnClickRelease
when unspecified. - InputText: fixed a bug (regression in 1.91.2) where modifying text buffer within a callback would sometimes prevents further appending to the buffer.
- Tabs, Style: made
ImGuiCol_TabDimmedSelectedOverline
alpha 0 (not visible) in default styles as the current look is not right (butImGuiCol_TabSelectedOverline
stays the same). - Log/Capture: added experimental
io.ConfigWindowsCopyContentsWithCtrlC
option to automatically copy window contents into clipboard using CTRL+C. This is experimental because (1) it currently breaks on nested Begin/End, (2) text output quality varies, and (3) text output comes in submission order rather than spatial order. - Log/Capture: better decorating of
BeginMenu()
andTabItem()
output. - Log/Capture: a non terminated log ends automatically in the window which called it.
- imgui_freetype: Fixed a crash in build font atlas when using merged fonts and the first font in a merged set has no loaded glyph. (#8081)
- Backends: DX12: Unmap() call specify written range. The range is informational and may be used by debug tools.
- Backends: SDL2: Replace
SDL_Vulkan_GetDrawableSize()
forward declaration with the actual include. (#8095, #7967, #3190) [sev-] - Backends: SDL2, SDL3:
SDL_EVENT_MOUSE_WHEEL
event doesn't require dividing by 100.0f on Emscripten target. (#4019, #6096, #1463) - Examples: SDL3+Vulkan: Added example. (#8084, #8085)
- Examples: Android+OpenGL: Using
ALooper_pollOnce()
instead ofALooper_pollAll()
which has been deprecated. (#8013) [feather179]
Changes from 1.91.4 to 1.91.5 in the Docking branch:
- Backends: GLFW: added Linux workaround for spurious mouse up events emitted while dragging and creating new viewports. Generally they would be interrupting a dragging operations. (#3158, #7733, #7922) [rokups, ocornut]
- Docking: fixed using
ImGuiDockNodeFlags_KeepAliveOnly
withDockSpaceOverViewport()
: the normally invisible space did erroneously claim mouse hover and could be potentially focused. (#8125) [kcbanner]
How the output of io.ConfigWindowsCopyContentsWithCtrlC
looks: