ocornut
22503bfe75
Backends: changed all backends to allow enabling ImGuiConfigFlags_ViewportsEnable after initialization. ( #5371 )
2024-10-08 20:47:24 +02:00
ocornut
c3629adbeb
Backends: Metal: fixed ImTextureID cast. ( #1641 )
...
Amend 92b9498
2024-10-08 14:34:41 +02:00
ocornut
92b94980c6
(Breaking) Default ImTextureID to use a Im64 instead of void* ( #1641 )
2024-10-08 14:21:44 +02:00
ocornut
f890d85381
Backends: Fixed typo in comments from old wip work 'io.BackendRendererRenderState' -> 'platform_io.Renderer_RenderState'. ( #6969 , #5834 , #7468 , #3590
...
Amend e94f95d
2024-10-07 22:12:09 +02:00
ocornut
fa9277d12d
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_dx10.cpp
# backends/imgui_impl_dx11.cpp
# backends/imgui_impl_dx11.h
# backends/imgui_impl_dx12.cpp
# backends/imgui_impl_dx12.h
# backends/imgui_impl_dx9.cpp
# backends/imgui_impl_opengl2.cpp
# backends/imgui_impl_opengl3.cpp
# backends/imgui_impl_vulkan.cpp
# backends/imgui_impl_vulkan.h
# backends/imgui_impl_wgpu.cpp
# backends/imgui_impl_wgpu.h
# imgui.h
2024-10-07 22:05:57 +02:00
ocornut
42206b3d51
Backends: DX9, DX10, DX11, DX12, OpenGL, Vulkan, WGPU: Changed default texture sampler to Clamp instead of Repeat/Wrap. ( #7468 , #7511 , #5999 , #5502 )
2024-10-07 22:02:55 +02:00
ocornut
74dd38d27c
Backends: Vulkan: fixed warnings when building in 32-bit mode.
2024-10-07 21:53:46 +02:00
ocornut
e94f95d82b
Backends: DX11, DX12, Vulkan, WGPU: Expose some backend-specific render state usable for callbacks. ( #6969 , #5834 , #7468 , #3590 )
2024-10-07 21:45:19 +02:00
ocornut
9bd5d8a240
Backends: misc renaming of locals. Use 'draw_list' instead of 'cmd_list'. Avoid using 'ctx'.
...
This is likely to trigger merging issues. If it does, best to always get "theirs" and rename in there.
2024-10-07 17:57:11 +02:00
ocornut
3293ef8bbc
Backends: Win32: Use ResisterClassW()/CreateWindowExW() for secondary viewports. ( #7979 , #5725 )
2024-10-03 12:04:54 +02:00
ocornut
02b9797696
Backends: SDL3: fixes use of now removed SDL_bool.
2024-10-03 11:56:14 +02:00
ocornut
aa81272900
Merge branch 'master' into docking
...
# Conflicts:
# docs/CHANGELOG.txt
# imgui_internal.h
2024-09-24 20:31:26 +02:00
ocornut
d7cedd648b
Backends: SDL2, SDL3: Fixed building for UWP platforms. ( #8008 )
2024-09-23 14:03:36 +02:00
Mark Sibly
7f81fbc542
Backends: WGPU: Fix new WGPUStringView breaks shader compilation. ( #8009 , #8010 )
2024-09-23 13:56:21 +02:00
ocornut
10fe2b674a
Merge branch 'master' into docking
2024-09-20 18:43:48 +02:00
ocornut
0af2c4ef76
Backends: SDL3: Update for API changes: SDL_bool removal. SDL_INIT_TIMER removal. ( #7999 )
2024-09-19 16:02:23 +02:00
ocornut
bc77cccd31
Merge branch 'master' into docking
2024-09-19 14:52:43 +02:00
ocornut
42272505c9
Backends: ensure that ImGuiPlatformMonitor list is available after backend Init call. ( #7995 )
2024-09-19 14:25:01 +02:00
ocornut
cfae5ac71b
Backends: make ImGui_ImplSDL2_KeyEventToImGuiKey(), ImGui_ImplSDL3_KeyEventToImGuiKey(), ImGui_ImplGlfw_KeyToImGuiKey(), ImGui_ImplWin32_KeyEventToImGuiKey(), ImGui_ImplAllegro5_KeyCodeToImGuiKey(), ImGui_ImplOSX_KeyCodeToImGuiKey(), non-static. ( #7997 )
...
Backends: Win32: Refactor ImGui_ImplWin32_KeyEventToImGuiKey() logic.
Ref #7672
2024-09-19 14:10:00 +02:00
ocornut
ae8688974b
Merge branch 'master' into docking
2024-09-17 21:08:03 +02:00
RT2
1ab1e3c656
Backends: SDL3: rework implementation of ImGuiViewportFlags_NoTaskBarIcon. ( #7989 )
2024-09-17 16:07:42 +02:00
ocornut
08b1496b7e
Backends: Win32: fixed an issue where a viewport destroyed while clicking would hog mouse tracking and temporary lead to incorrect update of HoveredWindow. ( #7971 )
...
# Conflicts:
# backends/imgui_impl_win32.cpp
# docs/CHANGELOG.txt
2024-09-16 17:25:57 +02:00
ocornut
8ba7efb738
Backends: Win32: fixed an issue where a viewport destroyed while clicking would hog mouse tracking and temporary lead to incorrect update of HoveredWindow. ( #7971 )
2024-09-16 17:23:33 +02:00
Aaron C Gaudette
1ac162f2b0
Backends: WGPU: add IMGUI_IMPL_WEBGPU_BACKEND_DAWN/IMGUI_IMPL_WEBGPU_BACKEND_WGPU to support more targets. ( #7977 , #7969 , #6602 , #6188 , #7523 )
2024-09-16 16:26:13 +02:00
ocornut
44a74509af
Backends: Win32: fixed direct calls to platform_io.Platform_SetWindowPos()/Platform_SetWindowSize() on windows created by application (typically main viewport).
2024-09-16 13:56:25 +02:00
ocornut
8326dabe5e
Merge branch 'master' into docking
2024-09-12 23:19:26 +02:00
Yan Pujante
6dcb7be35f
CI: amend build tests for emscripten ( #7965 )
...
+ Backends: GLFW: minor preemptive fix.
2024-09-12 20:23:01 +02:00
Yan Pujante
ac2ad79812
Backends: GLFW+Emscripten: use OSX behaviors automatically when using contrib glfw port. ( #7965 , #7915 )
2024-09-12 19:50:50 +02:00
RT2
484764860d
Backends: SDL3: added support for viewport->ParentViewportId field to support parenting windows at OS level. ( #7973 )
2024-09-12 19:35:31 +02:00
ocornut
68aa9a86ec
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_sdl2.cpp
2024-09-10 16:29:14 +02:00
scribam
4236bc088f
Backends: SDL2: use SDL_Vulkan_GetDrawableSize with Vulkan instead of SDL_GL_GetDrawableSize. ( #7967 , #3190 )
2024-09-09 17:33:28 +02:00
ocornut
f63c95a076
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_sdl3.cpp
# docs/CHANGELOG.txt
# imgui.cpp
# imgui.h
# imgui_internal.h
2024-09-04 16:58:44 +02:00
Yan Pujante
30dcdcbe73
Backends: GLFW: Emscripten: use OpenURL() when available and using EMSCRIPTEN_USE_PORT_CONTRIB_GLFW3. Fixes popup blocked in some browsers. ( #7915 , #7660 )
2024-09-03 19:32:00 +02:00
ocornut
6af9ac29ec
Backends: SDL3: following SDL3 reverting their change, result of SDL_GetDisplays() must be freed. ( #7809 )
...
Reverts 271910e
2024-09-03 19:13:45 +02:00
ocornut
4832027eb6
Examples: SDL3: Update for API changes: SDL_Init() returns 0 on failure.
2024-09-03 19:11:51 +02:00
Matt Guerrette
6a7319543c
Backends: SDL3: following SDL3 reverting their change, result of SDL_GetGamepads must be freed. ( #7918 , #7898 , #7807 )
2024-09-03 18:50:10 +02:00
ocornut
8b37da74db
Backends: GLFW: undo accidentally not committing use of Platform_SetClipboardTextFn as I was testing the legacy path (amend 214977e
).
2024-08-22 20:28:30 +02:00
ocornut
d15da2c47d
Backends: GLFW: undo accidentally not committing use of Platform_SetClipboardTextFn as I was testing the legacy path (amend 214977e
).
2024-08-22 20:27:50 +02:00
ocornut
fed4841bd4
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_glfw.cpp
# backends/imgui_impl_osx.mm
# backends/imgui_impl_sdl2.cpp
# backends/imgui_impl_sdl3.cpp
# imgui.cpp
# imgui.h
# imgui_internal.h
2024-08-22 20:26:59 +02:00
ocornut
214977e5fd
IO: (BREAKING) moved io.GetClipboardTextFn, io.SetClipboardTextFn to platform_io.Platform_GetClipboardTextFn, platform_io.Platform_SetClipboardTextFn.
2024-08-22 20:12:23 +02:00
ocornut
9ff60ae31d
IO: (BREAKING) moved GetIO().PlatformSetImeDataFn to GetPlatformIO(.Platform_SetImeDataFn. ( #7660 )
2024-08-22 20:11:55 +02:00
ocornut
ba2f4a2cd5
IO: (BREAKING) moved GetIO().PlatformOpenInShellFn to GetPlatformIO(.Platform_OpenInShellFn. ( #7660 )
2024-08-22 20:11:36 +02:00
ocornut
8e40104795
Backends: GLFW: passing null window to glfwGetClipboardString()/glfwSetClipboardString().
2024-08-22 18:13:34 +02:00
ocornut
ea01c63e36
Backends: SDL2, SDL3: amend filtering logic for it to work with multi-viewports. ( #7853 )
2024-08-19 14:46:53 +02:00
ocornut
24b077c7f8
Merge branch 'master' into docking (multi-viewport broken until next commit)
...
# Conflicts:
# backends/imgui_impl_sdl2.cpp
# backends/imgui_impl_sdl3.cpp
2024-08-19 14:44:35 +02:00
ocornut
2d99052d1d
Backends: SDL2, SDL3: storing SDL_WindowID inside ImGuiViewport::PlatformHandle instead of SDL_Window*. ( #7853 )
...
This will be used to support filtering of events with multi-viewports.
2024-08-19 14:43:43 +02:00
ocornut
1b61d55079
Backends: SDL2, SDL3: ignore events of other SDL windows, amends + wrapping into a function as it'll be convenient for multi-viewport check. ( #7853 )
...
+ Misc typo fix.
2024-08-19 14:43:40 +02:00
Anonymous Maarten
591a18a9c4
Backends: SDL2, SDL3: ignore events of other SDL windows. ( #7853 )
2024-08-19 13:54:39 +02:00
ocornut
65840c19c4
Backends: SDL2, SDL3, Win32: don't submit monitor with 0 DpiScale (e.g. accessibility virtual monitor?). to prevent assert. ( #7902 )
...
I am not too confident on this but I believe pushing this is the fastest way we will get feedback.
2024-08-19 12:19:06 +02:00
RT2
fa65dcf24c
Backends: SDL2, SDL3: Replace Win32 hack with SDL_HINT_WINDOW_ACTIVATE_WHEN_SHOWN hint. ( #7896 )
2024-08-19 12:15:29 +02:00
Nicolas Noble
fbafc33376
Backends: GLFW: don't submit monitor with 0 DpiScale (e.g. accessibility virtual monitor?). to prevent assert. ( #7902 )
2024-08-19 11:51:53 +02:00
ocornut
d8c98c8c14
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_glfw.cpp
2024-08-01 19:07:53 +02:00
ocornut
71ee2ce367
Examples: GLFW: rework examples main loop to handle minimization without burning CPU or GPU by running unthrottled code. ( #7844 )
...
Backends: GLFW: added ImGui_ImplGlfw_Sleep() helper.
2024-07-31 17:33:24 +02:00
ocornut
6df1a06fc3
Merge branch 'master' into docking
2024-07-29 23:18:54 +02:00
ocornut
e212511047
Backends: Vulkan: ImGui_ImplVulkan_SwapBuffers() still proceeds increasing counts on VK_SUBOPTIMAL_KHR. ( #7825 , #3881 )
...
Amend 085cff2f
2024-07-29 15:48:54 +02:00
ocornut
3f9a90e2a3
Docs: added extraneous link to Getting Started section.
2024-07-25 16:59:40 +02:00
ocornut
3552df562e
Merge branch 'master' into docking
...
# Conflicts:
# imgui.cpp
# imgui.h
2024-07-25 16:41:56 +02:00
chenqiudu
aa0f6b37bd
Backends: OSX: fixed NSAppKitVersion version limit for setWantsBestResolutionOpenGLSurface usage. ( #7814 )
2024-07-23 15:20:38 +02:00
Cyao
fe09ebbe0a
Backends: OpenGL3: Fixed unsupported option warning with apple clang ( #7810 )
2024-07-22 21:10:35 +02:00
ocornut
271910e349
Backends: SDL3: Update for API changes: SDL_GetDisplays() memory ownership change. ( #7809 )
2024-07-22 19:43:59 +02:00
ocornut
3fab2bb7be
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_sdl3.cpp
# imgui.cpp
2024-07-22 19:41:39 +02:00
ocornut
eb72b5a8ee
Backends: SDL3: Update for API changes: SDL_GetGamepads() memory ownership change. ( #7807 )
2024-07-22 10:49:22 +02:00
ocornut
0e485a2109
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_sdl3.cpp
# imgui.cpp
# imgui_widgets.cpp
2024-07-18 17:56:27 +02:00
ocornut
c2d21ab04f
Backends: SDL3: Update for API changes: SDL_GetClipboardText() string ownership change. ( #7801 )
2024-07-18 14:02:27 +02:00
ocornut
5ea96c15cd
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_glfw.cpp
# backends/imgui_impl_win32.cpp
2024-07-15 11:21:18 +02:00
ocornut
9c2f6003e4
Backends: SDL3: fixed typo leading to PlatformHandleRaw not being set leading to SHOWNA path not working for multi-viewports.
2024-07-15 11:17:21 +02:00
wermi
df3a74389e
Backends: SDL3: Update for API changes: SDL_GetProperty() change to SDL_GetPointerProperty(). ( #7794 )
2024-07-15 11:16:26 +02:00
ocornut
a8e96ae21a
Backends: GLFW+Emscripten: Fixed build ( #7647 )
2024-07-08 22:26:14 +02:00
Yan Pujante
2937339c17
Backends: GLFW+Emscripten: Added support for GLFW3 contrib port. ( #7647 )
2024-07-08 22:06:24 +02:00
Yan Pujante
6816789a6b
Backends: GLFW+Emscripten: (Breaking) Renamed ImGui_ImplGlfw_InstallEmscriptenCanvasResizeCallback() to ImGui_ImplGlfw_InstallEmscriptenCallbacks(), added GLFWwindow* parameter. ( #7647 , #7600 )
...
+ Fixed Emscripten warning when using mouse wheel on some setups.
2024-07-08 22:02:48 +02:00
Aemony
9504068f66
Backends: Win32: fixed ImGuiMod_Super being mapped to VK_APPS instead of VK_LWIN||VK_RWIN ( #7768 , #4858 , #2622 )
...
Amend 075576744
The `ImGui_ImplWin32_UpdateKeyModifiers()` function maps `ImGuiMod_Super` to `VK_APPS`, the "Application" key located between the Right Windows (Super) and Right Control keys on the keyboard, see https://conemu.github.io/en/AppsKey.html
This means that when using `ImGui::GetIO().KeySuper` to try to get the down state of the `VK_RWIN` or `VK_LWIN` keys, it'll always return FALSE when either of those keys are held down, and only return TRUE when `VK_APPS` is held down.
2024-07-08 13:59:07 +02:00
ocornut
527b2c45af
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_glfw.cpp
# backends/imgui_impl_sdl2.cpp
2024-07-02 19:05:36 +02:00
ocornut
0ebf49b4c1
IO: amend PlatformOpenInShellFn specs to return a bool. ( #7660 )
...
Amend 8f36798
2024-07-02 19:03:40 +02:00
ocornut
380b3559c6
Backends: GLFW,SDL2: Added ioPlatformOpenInShellFn handler for web/Emscripten versions. ( #7660 )
2024-07-02 18:06:19 +02:00
ocornut
3f61da7e8b
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_osx.mm
# backends/imgui_impl_sdl2.cpp
# backends/imgui_impl_sdl3.cpp
# backends/imgui_impl_sdl3.h
# imgui.cpp
# imgui.h
# imgui_internal.h
2024-07-02 17:48:38 +02:00
ocornut
fb799bba7f
(Breaking) IO, IME: renamed platform IME hook io.SetPlatformImeDataFn() -> io.PlatformSetImeDataFn() and added explicit context.
2024-07-02 15:48:32 +02:00
ocornut
ae708e3bcd
Backends: SDL3: add default case to fix warnings. ( #7763 )
2024-07-02 12:12:25 +02:00
ocornut
a489585f84
Backends: SDL3: Updated comments (IME seems fixed in SDL3). Added SDL3 examples to Visual Studio solution.
2024-07-02 11:37:18 +02:00
ocornut
12f92518bc
Backends: SDL3: Update for API changes: SDLK_x renames and SDLK_KP_x removals ( #7761 , #7762 )
...
Also updated function signature in SDL2 backend to match and because it is expected we will use that data (as per #7672 )
2024-07-02 11:36:13 +02:00
ocornut
3369cbd277
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_sdl3.cpp
2024-07-01 17:10:12 +02:00
Max Ortner
ccf3ee674a
Backends: SDL3: update for SDL_SetTextInputRect() -> SDL_SetTextInputArea() api change. ( #7760 , #7754 )
2024-07-01 12:10:00 +02:00
ocornut
751bbf38ba
Backends: SDLRenderer3: Update for SDL_RenderGeometryRaw() API changes.
2024-07-01 12:07:59 +02:00
Connor Clark
f2c07ed717
Backends: Allegro5: Correctly handle unstable bit in version checks ( #7755 )
2024-06-30 23:25:51 +02:00
ocornut
138d9d0c21
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_opengl2.cpp
# backends/imgui_impl_opengl3.cpp
2024-06-28 16:03:49 +02:00
ocornut
c7df9c7121
Backends: Win32: Fixed warning with old MinGW/GCC versions.
2024-06-28 15:48:08 +02:00
ocornut
404af57004
Backends: OpenGL2, OpenGL3: ImGui_ImplOpenGL3_NewFrame() recreates font texture if it has been destroyed by ImGui_ImplOpenGL3_DestroyFontsTexture(). ( #7748 )
...
Analogous to change to Vulkan backend in 1.90.
2024-06-28 15:08:54 +02:00
ocornut
0c2650e833
Backends: OSX: build fix. Amend 32f9dfc
2024-06-26 16:23:42 +02:00
ocornut
10a5a857f5
Merge branch 'master' into docking
...
# 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
# imgui.h
2024-06-26 14:54:01 +02:00
ocornut
7c2476986b
Backends: SDL3: Update for SDL_StartTextInput()/SDL_StopTextInput() API changes. ( #7735 )
2024-06-26 14:45:25 +02:00
ocornut
32f9dfc126
Viewports: Backported 'void* ImGuiViewport::PlatformHandle' from docking branch for use by backends.
2024-06-26 14:32:48 +02:00
Martin Ejdestig
a18fb406ac
Backends: Vulkan: Remove Volk/ from volk.h #include directives ( #7722 , #6582 , #4854 )
2024-06-24 13:09:00 -07:00
Gary Geng
48e7e7bfe8
Backends: SDL3: Follow SDL3 removal of keysym field in SDL_KeyboardEvent ( #7729 )
2024-06-23 15:26:52 -07:00
ocornut
e863f89d39
Merge branch 'master' into docking
...
# Conflicts:
# imgui.cpp
2024-06-20 17:47:22 -07:00
ocornut
416cfdb99d
Backends: Win32: Secondary viewports WndProc handler retrieve/set imgui context from the HWND.
...
Allowing WndProc dispatch to work in multi-context setups.
2024-06-20 17:44:19 -07:00
ocornut
3acb869a95
Backends: Win32: avoid skipping DefWindowProc() on WM_CLOSE.
...
Mostly because I don't have a trace of why I did it this way, even in viewport branch history.
2024-06-20 17:42:46 -07:00
bcsanches
64a82d73c9
Backends: SDL3: Update for introduction of SDL_GLContext from void*. ( #7701 , #7702 )
2024-06-18 09:45:24 -07:00
ocornut
fdc084f532
Merge branch 'master' into docking
2024-06-03 19:08:37 +02:00
ocornut
f8de9fec8c
Backends: SDL3: Update for SDL_SYSTEM_CURSOR_xxx api renames. ( #7653 )
2024-06-03 18:25:58 +02:00
ocornut
5ecef2f321
Merge branch 'master' into docking
...
# Conflicts:
# examples/example_win32_directx10/main.cpp
# examples/example_win32_directx11/main.cpp
# examples/example_win32_directx12/main.cpp
# imgui.cpp
2024-05-23 17:25:02 +02:00
Michal Šlesár
4c3eac2c10
Backends: OpenGL3: Fixed zealous warning by initializing last_pixel_unpack_buffer. ( #7614 )
2024-05-22 12:01:54 +02:00