ocornut
eabe98f6d5
Merge branch 'master' into docking (incl merge moved CurrentDpiScale field)
...
# Conflicts:
# backends/imgui_impl_osx.mm
# backends/imgui_impl_win32.cpp
# imgui.cpp
2024-05-14 16:29:06 +02:00
ocornut
ac90e1bd5b
Backends: Win32: replace bd != nullptr assert with early out. ( #6275 )
...
+ fixed inconsistent use of break vs return 0 in WndProcHandler (had no tangible effect).
2024-05-14 12:18:10 +02:00
ocornut
5e23680454
Backends: all backends + demo now call IMGUI_CHECKVERSION() to verify ABI compatibility between caller code and compiled version of dear imgui. ( #7568 )
2024-05-13 15:07:13 +02:00
ocornut
e391fe2e66
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_opengl3.cpp
# imgui.cpp
# imgui_internal.h
2024-05-08 16:17:32 +02:00
ocornut
0d483a1c89
Backends: OpenGL3: Update loader for Linux to support EGL/GLVND. ( #7562 )
...
+ #6983
2024-05-07 18:23:29 +02:00
ocornut
92df32d339
Backends: OpenGL3: minor update of generated loader to match latest downloaded glcorearb.h/khrplatform.h files.
2024-05-07 17:46:36 +02:00
ocornut
1ab1af80c7
Backends: Win32: Facepalm revert part of d15574c
+ additional commentary ( #6275 )
2024-05-07 17:03:51 +02:00
ocornut
d15574ce2a
Backends: Win32: Removed silent return when calling ImGui_ImplWin32_WndProcHandler() with no active context! ( #6275 )
...
Better standardized similar checks in other backends.
2024-05-07 16:53:03 +02:00
Rory O'Connell
8b2c6dd42f
Backends: Vulkan: reworked swap-chain resize handling for secondary viewports to work with typical Linux setups. ( #2626 , #3390 , #3758 , #7508 , #7513 )
2024-05-07 16:14:15 +02:00
Sandro Cavazzoni
ebb8d78102
Backends: Vulkan: Create a custom pipeline for secondary viewports. ( #6325 , #6305 , #7398 , #3459 , #3253 , #3522 )
...
Edited from original commit: moved ImGui_ImplVulkan_CreatePipeline() call from ImGui_ImplVulkanH_CreateOrResizeWindow() to ImGui_ImplVulkan_CreateWindow().
2024-04-30 15:37:36 +02:00
ocornut
49e70e60a2
Backends: Vulkan: Stripped misleading leftover of ImGui_ImplVulkanH_Window::Pipeline ( #6325 , #6305 , #7398 , #3459 , #3253 , #3522 )
...
As this is currently unused and misleading. Next commit will add a separate pipeline for secondary viewport.
2024-04-30 15:37:36 +02:00
ocornut
5717f0a33e
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_vulkan.cpp
# backends/imgui_impl_win32.cpp
2024-04-30 10:42:46 +02:00
Lukas Lipp
a60387a3c2
Backends: GLFW: Add define guards for glfw native defines. ( #7536 )
2024-04-29 19:24:17 +02:00
ocornut
b720c0f541
Backends: Vulkan: Added convenience support for Volk via IMGUI_IMPL_VULKAN_USE_VOLK define. ( #6582 , #4854 )
2024-04-19 15:47:26 +02:00
ocornut
07e8ff9a8d
Backends: Win32: Fixed a warning + moved header cruft below Changelog.
2024-04-18 21:26:49 +02:00
ocornut
b555984a94
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_opengl3.cpp
# imgui.cpp
2024-04-18 21:18:18 +02:00
ocornut
9ec299ebe3
Backends: OpenGL: Detect ES3 contexts on desktop based on version string, ( #7447 )
2024-04-16 16:18:51 +02:00
ocornut
4cb0fe3c7d
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_sdl3.cpp
# backends/imgui_impl_sdl3.h
# docs/CHANGELOG.txt
# imgui_internal.h
2024-04-16 14:24:13 +02:00
ocornut
7b8107e7c8
Examples: GLFW+WebGPU: Rename example_emscripten_wgpu/ to example_glfw_wgpu/ ( #7435 , #7132 )
2024-04-16 14:16:32 +02:00
Green Sky
fab96a6e59
Backends: SDL3: Re-enable calling SDL_StartTextInput()/SDL_StopTextInput(). ( #7452 , #6306 , #6071 , #1953 )
...
Amend: a7703fe
2024-04-15 12:25:42 +02:00
ocornut
1db579d458
Merge branch 'master' into docking
2024-04-11 16:21:56 +02:00
Elie Michel
8be48a44f7
Backends: WebGPU: Avoid using -1u literal ( #7436 )
2024-03-25 11:10:38 +09:00
ocornut
085781f5ca
Merge branch 'master' into docking
...
# Conflicts:
# imgui.cpp
2024-03-18 22:52:40 -07:00
Robert Edmonds
da29b776ee
Backends: SDL3: Fix leak of SDL_GetGamepads() return value ( #7381 )
2024-03-11 11:04:56 +01:00
ocornut
77dff5a735
Backends: comments.
2024-02-28 11:06:40 +01:00
ocornut
4e8c43f6b7
Backends: Win32: made it so that an appearing viewport showing up doesn't bring its parent viewport to front. ( #7354 )
2024-02-27 20:02:26 +01:00
ocornut
2b662b1ab9
Merge branch 'master' into docking
...
# Conflicts:
# docs/CHANGELOG.txt
# imgui.cpp
2024-02-20 15:33:20 +01:00
John Melas
b19a4c5f2b
Backends: OSX: remove legacy clearing of io.NavInputs in ImGui_ImplOSX_UpdateGamepads(). ( #7320 )
2024-02-15 14:57:37 +01:00
ocornut
8048b52498
Backends: GLFW: enable ImGuiBackendFlags_HasMouseHoveredViewport support with GLFW 3.3.x. ( #7316 )
2024-02-15 14:50:45 +01:00
ocornut
c66a1e7d51
Backends: Vulkan: ImGui_ImplVulkan_CreateWindow() amend merge to take account of PipelineRenderingCreateInfo change. ( #7166 , #6855 , #5446 , #5037 )
2024-02-14 14:39:26 +01:00
ocornut
d79514c407
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_dx9.cpp
# backends/imgui_impl_sdl2.cpp
# backends/imgui_impl_sdl3.cpp
# backends/imgui_impl_vulkan.cpp
# imgui.cpp
2024-02-14 14:32:17 +01:00
Shawn Hatori
f80e65a406
Backends:,Examples: Vulkan: moved RenderPass parameter from ImGui_ImplVulkan_Init() function to ImGui_ImplVulkan_InitInfo structure. ( #7308 )
2024-02-14 13:56:46 +01:00
ocornut
829f45df99
Backends: SDL2: removed obsolete ImGui_ImplSDL2_NewFrame(SDL_Window*) signature which was obsoleted in 1.84..
2024-02-14 12:06:21 +01:00
ocornut
891b81fc5d
Backends: SDL3: Fixed gamepad. Added support for disconnection. Added support for multiple gamepads. Added ImGui_ImplSDL3_SetGamepadMode(). ( #7180 , #3884 , #6559 , #6890 )
2024-02-14 11:37:18 +01:00
ocornut
262e30e300
Backends: SDL2: rework new API as ImGui_ImplSDL2_SetGamepadMode(). ( #3884 , #6559 , #6890 , #7180 )
...
Code is simpler this way.
2024-02-14 11:30:43 +01:00
ocornut
d15e4100b8
Backends: SDL2: Amend new API, all support for multiple gamepads. ( #3884 , #6559 , #6890 )
2024-02-13 18:55:14 +01:00
ocornut
f966da1f8f
Backends: SDL2: Gamepad handlng: amend bf1c96d
. ( #3884 , #6559 , #6890 )
2024-02-13 16:31:33 +01:00
ocornut
bf1c96d4fa
Backends: SDL2: Handle gamepad disconnection + fixed increasing refcount. Added ImGui_ImplSDL2_SelectGamepadAuto()/ImGui_ImplSDL2_SelectGamepadExplicit(). ( #3884 , #6559 , #6890 )
2024-02-13 16:24:44 +01:00
ocornut
fd8d6dc5d1
Backends: SDL2,SDL3: tidying up.
2024-02-13 15:49:49 +01:00
ocornut
e0ba0d0433
Backends: Vulkan: Fixes for building with pre Vulkan 1.3. Amend 8901931
. ( #7166 )
2024-02-12 18:46:01 +01:00
ocornut
11d73f03ee
Backends: Vulkan: Fix/amend 8901931
2024-02-12 17:18:52 +01:00
Shawn Hatori
89019319dd
Backends: Vulkan: use PipelineRenderingCreateInfo for dynamic rendering ( #7166 , #6855 , #5446 , #5037 )
2024-02-12 16:55:00 +01:00
璀境石
1d6f0cea0e
Backends: DX9: use RGBA texture to avoid conversion if supported
2024-02-12 16:05:10 +01:00
ocornut
2af01baffd
Backends: SDLRenderer3: query newly added SDL_RenderViewportSet() to not restore a wrong viewport if none was initially set.
...
https://github.com/libsdl-org/SDL/issues/9029
2024-02-12 14:57:39 +01:00
ocornut
82eeafc196
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_glfw.cpp
2024-02-07 22:10:33 +01:00
Bruce Mitchener
f50ddc431e
Fixed some typos. ( #7282 )
2024-02-01 18:30:00 +01:00
ocornut
1509842107
Backends: OpenGL3: Shallow tweak of compile-time extensions detection.
...
Detect polygon mode using same method as others (not define/symbol).
IMGUI_IMPL_OPENGL_MAY_HAVE_EXTENSIONS -> IMGUI_IMPL_OPENGL_HAS_EXTENSIONS
2024-01-24 15:21:46 +01:00
Clément Gallet
1ce41f6218
Backends: OpenGL3: Backup and restore GL_PIXEL_UNPACK_BUFFER. ( #7253 )
...
Amended with (bd->GlVersion >= 210) checks.
2024-01-24 15:01:59 +01:00
actboy168
54ef4092a9
Backends: OSX: Fixed not submitting Monitors info when viewports are not enabled. ( #7257 )
2024-01-24 14:51:04 +01:00
ocornut
eb42e164dd
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_vulkan.cpp
2024-01-22 19:01:25 +01:00
rajveermalviya
9266c0d2d1
Backends: WebGPU: Avoid leaking pipeline layout. ( #7245 )
2024-01-22 15:37:00 +01:00
ocornut
5fc0a361b2
Backends: WebGPU: added ImGui_ImplWGPU_InitInfo::PipelineMultisampleState. ( #7240 )
2024-01-22 14:54:45 +01:00
ocornut
831d42c1ab
Backends: WebGPU: ImGui_ImplWGPU_Init() now takes a ImGui_ImplWGPU_InitInfo structure instead of variety of parameters, allowing for easier further changes. ( #7240 )
2024-01-22 14:53:30 +01:00
Frank McCoy
15908502ed
Backends: Vulkan: Define NOMINMAX when VK_USE_PLATFORM_WIN32_KHR is defined. ( #7250 )
2024-01-22 11:15:14 +01:00
ocornut
5ddfbb80d8
Backends: Vulkan: Fixed vkAcquireNextImageKHR() validation errors in VulkanSDK 1.3.275 by allocating one extra semaphore than in-flight frames. ( #7236 )
2024-01-19 14:52:33 +01:00
ocornut
01b99a974d
Backends: Vulkan: Fixed vkAcquireNextImageKHR() validation errors in VulkanSDK 1.3.275 by allocating one extra semaphore than in-flight frames. ( #7236 )
2024-01-19 14:50:46 +01:00
ocornut
cab7edd135
Merge branch 'master' into docking
...
# Conflicts:
# imgui_internal.h
2024-01-17 18:38:03 +01:00
ocornut
03417cc77d
Backends: WebGPU: Filling all WGPUDepthStencilState fields explicitly as a recent Dawn update stopped setting default values. ( #7232 )
2024-01-17 13:26:02 +01:00
ocornut
a27f22f0e9
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_vulkan.cpp
# imgui.cpp
# imgui_internal.h
2024-01-16 11:43:36 +01:00
ocornut
6228c2e1ec
Backends: Vulkan: moved ImGui_ImplVulkanH_DestroyFrameRenderBuffers/ImGui_ImplVulkanH_DestroyWindowRenderBuffers as they are always used in a state where backend data is available.
2024-01-11 20:22:37 +01:00
ocornut
70bb6d1e79
Backends: Vulkan: Fixed vkMapMemory() calls unnecessarily using full buffer size. ( #3957 )
2024-01-11 14:57:38 +01:00
Tristan Gouge
82df7c8bf4
Backends: Vulkan: Fixed handling of ImGui_ImplVulkan_InitInfo::MinAllocationSize field. ( #7189 , #4238 )
2024-01-11 14:43:51 +01:00
ocornut
2dc85e6e43
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_opengl3.cpp
# imgui.cpp
# imgui_internal.h
2024-01-10 18:34:23 +01:00
ocornut
a3eea8a75a
Backends: OpenGL3: Update GL3W based imgui_impl_opengl3_loader.h to load "libGL.so" and variants, fixing regression on distros missing a symlink. ( #6983 )
...
Amend 0f50b52da
2024-01-09 23:26:05 +01:00
ocornut
8deb1007cd
Backends: OSX: Fixed IME position in multi-monitor/multi-viewports setups. ( #7028 )
2024-01-09 22:36:01 +01:00
ocornut
a683033e49
Backends: OSX: Fixed monitor and window position by correctly transforming Y origin on multi-monitor setups. ( #7028 , #7101 , #6009 , #6432 )
2024-01-09 22:21:57 +01:00
ocornut
e3d7cd665d
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_glfw.cpp
# backends/imgui_impl_vulkan.cpp
2024-01-03 18:33:44 +01:00
ocornut
6f10cef2a1
Backends: Vulkan: moved structure declarations.
...
This is mostly to facilitate maintainance of #6616 .
2024-01-03 16:19:03 +01:00
ocornut
0ea99132c8
Backends: Vulkan: Stop creating command pools with VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT as we don't reset them.
2024-01-03 14:11:40 +01:00
Tristan Gouge
4778560e66
Backends: Vulkan: Added MinAllocationSize field in ImGui_ImplVulkan_InitInfo to workaround zealous validation layer. ( #7189 , #4238 )
2024-01-03 12:17:08 +01:00
Axel Paris
e8dd47effa
Backends: WebGPU: Fixing an issue when opening a popup in the wgpu backend ( #7191 )
...
Amend 2b0bd40b9
2024-01-03 12:05:37 +01:00
kida22
240ab5890b
Backends: GLFW, Input: Use Unicode version of WndProc for get correct input for text in utf-8 code page. ( #7174 )
...
Similar to #6785 , #6782 , #5725 , #5961 for for GLFW backend.
2023-12-29 18:21:21 +01:00
Kai Wang
20e1caec85
Backends: DX12: Changed swapchain scaling mode to DXGI_SCALING_NONE
. ( #7152 , #7153 )
2023-12-21 14:18:43 +01:00
ocornut
4aa81116a5
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_glfw.cpp
# imgui.cpp
2023-12-20 23:57:19 +01:00
ocornut
33d426842d
Backends: Vulkan: ImGui_ImplVulkan_CreateFontsTexture() calls vkQueueWaitIdle() instead of vkDeviceWaitIdle(). ( #7148 , #6943 , #6715 , #6327 , #3743 , #4618 )
2023-12-19 18:25:09 +01:00
ocornut
3cb805489b
Backends: GLFW, Emscripten: fixes for canvas resizing, amends. ( #6751 )
...
Amend 22a7d24
2023-12-19 16:09:44 +01:00
Pello Rao
22a7d241ff
Backends: GLFW, Emscripten: fixes for canvas resizing. ( #6751 )
2023-12-19 15:56:31 +01:00
ocornut
8764a1b7c4
Backends: Vulkan: free FontCommandBuffer explicitely (not actually required in normal code path, unless ImGui_ImplVulkan_DestroyDeviceObjects is declared directly). ( #7104 )
2023-12-19 10:51:15 +01:00
ocornut
8add6bcb9f
Merge remote-tracking branch 'origin/master' into docking
...
# Conflicts:
# imgui.cpp
# imgui.h
2023-12-14 17:21:15 +01:00
Anılcan Gülkaya
9a2985611c
Backend: Android: Remove Redundant Check ( #7093 )
2023-12-06 04:29:40 +01:00
ocornut
96b5b1724b
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_vulkan.cpp
# imgui_internal.h
2023-12-05 12:20:16 +01:00
ocornut
b4b864e40a
Backends: Vulkan: Fixed mismatching allocator passed to vkCreateCommandPool() vs vkDestroyCommandPool(). ( #7075 )
2023-11-29 14:24:25 +01:00
ocornut
c6ec69c7c1
Using nullptr in remaining examples/backends locations. ( #6313 , #7071 , #4537 )
2023-11-28 19:29:17 +01:00
ocornut
888834c636
Backends: Android: Fixed build breaking typo. ( #7060 )
...
Amend 86891b0
. My bad for not testing this.
2023-11-28 15:23:45 +01:00
ocornut
f6253b87d0
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_sdl3.cpp
# imgui.cpp
2023-11-28 14:39:46 +01:00
ocornut
86891b0986
Backends: Android: ImGui_ImplAndroid_HandleInputEvent() takes a const AInputEvent* ( #7060 )
2023-11-28 12:08:05 +01:00
ocornut
3733b5064e
Backends: SDL3: Fixed unused variable warning on master on some targets. ( #7000 )
2023-11-17 12:28:25 +01:00
codefrog2002
c5c1c4134b
Backends: OpenGL3: imgui_impl_opengl3_loader.h: change #define ARRAY_SIZE to GL3W_ARRAY_SIZE to avoid external conflicts ( #7017 , #7018 )
2023-11-16 01:38:47 +01:00
Oliver Eriksson
6695006bea
Backends: Vulkan: use specified ColorAttachmentFormat when creating a secondary window when enabling UseDynamicRendering. ( #6999 , #5446 , #5037 )
2023-11-15 14:53:32 +01:00
ocornut
0941adc931
Backends: SDL3: Updates for recent API changes. ( #7000 ) (w/ multi-viewports version)
...
# Conflicts:
# backends/imgui_impl_sdl3.cpp
2023-11-13 16:24:50 +01:00
ocornut
add915bdc4
Backends: SDL3: Updates for recent API changes. ( #7000 )
2023-11-13 16:21:18 +01:00
ocornut
9d950444a2
Backends: Vulkan: Fixes for VK_NO_PROTOTYPES (docking merge + reorder docking only bits)
...
Amend for 6e7b43b,79a9e2f
2023-11-10 15:40:41 +01:00
ocornut
44dbad64d7
Backends: Vulkan: Fixes for VK_NO_PROTOTYPES.
...
Amend for 6e7b43b,79a9e2f
2023-11-10 15:10:27 +01:00
ocornut
450f1d7e7b
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_opengl3.cpp
# backends/imgui_impl_vulkan.cpp
# imgui.cpp
2023-11-10 14:56:10 +01:00
ocornut
79a9e2fdfb
Backends: Vulkan: (Breaking) full font upload is performed by ImGui_ImplVulkan_CreateFontsTexture(), no need for user code to create or provide a command-buffer. Removed ImGui_ImplVulkan_DestroyFontUploadObjects(). ( #6943 , #6715 , #6327 , #3743 , #4618 )
...
See changes in example_glfw_vulkan/main.cpp and example_sdl2_vulkan/main.cpp for reference.
2023-11-10 14:53:34 +01:00
ocornut
6e7b43b6c7
Backends: Vulkan: Added ImGui_ImplVulkan_DestroyFontsTexture(), made ImGui_ImplVulkan_CreateFontsTexture() destroy previous one. ( #6943 , #6715 , #6327 , #3743 , #4618 )
2023-11-10 14:53:06 +01:00
ocornut
ab522dd18c
Removed IM_OFFSETOF() macro in favor of using offsetof() available in C++11. Kept redirection define. ( #4537 )
2023-11-09 16:44:39 +01:00
ocornut
0f50b52da4
Backends: OpenGL3: Update GL3W based imgui_impl_opengl3_loader.h to load "libGL.so" instead of "libGL.so.1". ( #6983 )
2023-11-09 12:38:56 +01:00
Luca Lolli
04e9a2fac1
Backends: SDL3: rename SDL_EVENT_DISPLAY ( #6974 )
...
SDL3 display events have been renamed
2023-11-01 13:53:30 +01:00
ocornut
f7fc186408
Merge branch 'master' into docking
...
+ 2 comments
# Conflicts:
# backends/imgui_impl_glfw.cpp
# backends/imgui_impl_osx.mm
# backends/imgui_impl_sdl2.cpp
# backends/imgui_impl_sdl3.cpp
# backends/imgui_impl_win32.cpp
2023-10-12 19:22:36 +02:00