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
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
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
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
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
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
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
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
Anılcan Gülkaya
9a2985611c
Backend: Android: Remove Redundant Check ( #7093 )
2023-12-06 04:29:40 +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
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
ocornut
add915bdc4
Backends: SDL3: Updates for recent API changes. ( #7000 )
2023-11-13 16:21:18 +01:00
ocornut
44dbad64d7
Backends: Vulkan: Fixes for VK_NO_PROTOTYPES.
...
Amend for 6e7b43b,79a9e2f
2023-11-10 15:10:27 +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
ocornut
001f102f38
IO, Backends: added ImGuiKey_AppBack, ImGuiKey_AppForward. ( #6891 , #4921 )
2023-10-05 21:26:07 +02:00
ocornut
7bbd758681
Backends: Win32: revert oops chunk.
...
Amend b0758c8
2023-10-05 20:58:25 +02:00
ocornut
b0758c86d8
Backends: Added support for extra ImGuiKey values: F13 to F24 function keys. ( #6891 , #4921 )
2023-10-05 20:39:49 +02:00
Nicolas "Pixel" Noble
64b1aeebf5
Backends: OpenGL3: rename gl3w's loader symbols to allow LTO compilation with another copy of gl3w. ( #6875 , #6668 , #4445 )
2023-10-05 11:03:28 +02:00
ocornut
12ee2dd789
Backends: Win32: Synthesize key-down event on key-up for VK_SNAPSHOT / ImGuiKey_PrintScreen as Windows doesn't emit it. ( #6859 )
2023-09-25 10:58:29 +02:00
ocornut
357f752bed
Docs: add more links to the top of every examples and backends files.
2023-09-11 14:01:40 +02:00
sneakyevil
c9d3c29aa3
Backend: Win32: support keyboard codepage conversion for when compiling in MBCS mode and creating a non-Unicode window. ( #6785 , #6782 , #5725 )
2023-09-07 14:08:58 +02:00
Deal
56a7b8b724
Backends: GLFW: Clear emscripten's MouseWheel callback before shutdown. ( #6790 , #6096 , #4019 )
2023-09-06 11:49:23 +02:00
ocornut
162f8e01aa
Backends: SDL3: fixed typo in 1e17d59
( #6735 )
2023-08-21 13:12:50 +02:00
ocornut
1e17d59965
Backends: SDL2,SDL3: added ImGui_ImplSDL2_InitForOther() / ImGui_ImplSDL3_InitForOther().
...
e.g. WebGPU users use a similarly named functions from GLFW backend.
2023-08-15 12:48:46 +02:00
scorpion-26
e5977f05d8
Backends: GLFW: revert support for GLFW_CURSOR_DISABLED, let user use ImGuiConfigFlags_NoMouse. ( #5625 , #6609 )
2023-07-18 11:49:43 +02:00
williamhCode
3dc3aef8a4
Backends: WebGPU: fix webgpu changes for Dawn. ( #6602 , #6188 )
2023-07-13 12:42:08 +02:00
ocornut
0e8eb8c48e
Removed _MSC_VER <= 1500 checks for Visual Studio 2008 or earlier.
...
Our codebase requires VS2012+ since a while.
2023-07-13 12:38:16 +02:00
ocornut
33e13c85e1
Backends: Made all backends sources files support global IMGUI_DISABLE. ( #6601 )
2023-07-13 11:27:52 +02:00
ocornut
121072cfe6
Backends: Vulkan: Amend for support for dynamic_rendering ( #5446 , #5037 )
...
Simplified for master branch.
# Conflicts:
# backends/imgui_impl_vulkan.cpp
2023-07-04 14:16:28 +02:00
sean
7812e836e4
Backends: Vulkan: Support for dynamic_rendering ( #5446 , #5037 )
...
Co-authored-by: Caio Oliveira <cmarcelo@gmail.com>
Simplified for master branch.
# Conflicts:
# backends/imgui_impl_vulkan.cpp
2023-07-04 14:01:27 +02:00
ocornut
cb5542bce5
Backends: OpenGL3: Fixed erroneous use glGetIntegerv(GL_CONTEXT_PROFILE_MASK) on contexts lower than 3.2. ( #6539 , #6333 )
2023-06-20 15:30:52 +02:00
ocornut
884e3fd21f
Backends: GLFW: Accept glfwGetTime() not returning a monotonically increasing value. ( #6491 , #6189 , #6114 )
2023-06-12 11:58:17 +02:00
ocornut
dec082ff97
Backends: OpenGL3: Fixed support for glBindSampler() backup/restore on ES3. ( #6375 , #6508 )
...
Amend dd9db5e8
+ 39f7248d4
2023-06-12 11:45:11 +02:00
ocornut
b476184574
Backends: SDLRenderer3: Amend/finish SDL_Renderer3 patch + add example. ( #6286 )
2023-05-30 20:36:07 +02:00
Andrea Carcone
0b57c07c79
Backends: SDL3: Add SDL_Renderer for SDL3 implementation. ( #6286 )
...
This is mostly a duplicate of SDL2 version with a few changes:
SDL_GetRenderScale -> SDL_RenderGetScale
SDL_ScaleModeLinear -> SDL_SCALEMODE_LINEAR
2023-05-30 20:30:30 +02:00
ocornut
b709b02e96
Backends: SDL_Renderer2: renamed all functions accordingly. ( #6286 )
2023-05-30 20:15:31 +02:00
ocornut
88e7d773df
Backends: SDL_Renderer2: Renamed 'imgui_impl_sdlrenderer.h/cpp' to 'imgui_impl_sdlrenderer2.h/cpp' ( #6286 )
2023-05-30 20:11:19 +02:00
ocornut
52e19113f3
Backends: OpenGL3: Added more explicit comments about using GL ES2/3 on targets where it's not automatic. ( #6450 )
2023-05-23 11:43:16 +02:00
Jason Millard
39f7248d4a
Backends: OpenGL3: Add glBindSampler for GL ES 3.0. ( #6375 )
...
Amended given addition of GlProfileIsES3 in dd9db5e
2023-05-09 15:17:18 +02:00
ocornut
dd9db5e889
Backends: OpenGL3: Added runtime flags for ES2/ES3 to simplify coding-style. ( #6375 )
2023-05-09 15:09:47 +02:00
Alex
70cca1eac0
Backends: avoid null dereference in metal and osx shutdown ( #6385 , #6334 )
...
Co-authored-by: Alexander Rath <alex@ist.besonders.cool>
2023-05-04 17:18:29 +02:00
ocornut
5dc6013713
Backends: SDL3: Fixed build on Emscripten/iOS/Android. ( #6391 )
2023-05-04 17:06:36 +02:00
ocornut
a89590b425
Backends: Win32: revert accidental deletion of ImGui_ImplWin32_EnableAlphaCompositing() in a566ecc
( #3218 )
2023-04-20 10:38:45 +02:00
ocornut
9308cfdcfb
Examples: Amend Win32/Winapi + OpenGL example. ( #3218 , #5170 and #6086 , #2772 , #2600 , #2359 , #2022 , #1553 )
2023-04-19 16:28:15 +02:00
Mark Jansen
a566ecc58f
Examples: Add Win32/Winapi + OpenGL example. ( #3218 , #5170 and #6086 , #2772 , #2600 , #2359 , #2022 , #1553 )
...
Removed mulit-viewpot stuff in this commit on master, will be re-added separately.
2023-04-19 16:22:53 +02:00
ocornut
a338b78eb9
Backends: OpenGL3: amend reset GL_POLYGON_MODE separately for front and back when possible. ( #6333 )
2023-04-19 11:55:40 +02:00
Gereon V
d0836aa89a
Backends: OpenGL3: reset GL_POLYGON_MODE separately for front and back when possible. ( #6333 )
2023-04-19 11:55:36 +02:00
Gereon V
055e71518e
Backends: clear bits set in io.BackendFlags on backend Shutdown(). Clear BackendPlatformName. ( #6334 , #6335 )
...
Amended with fix for missing clear for ImGuiBackendFlags_HasGamepad.
2023-04-17 14:57:12 +02:00
Gereon V
f304603e13
Backends: GLUT: remove call to ImGui::NewFrame() from ImGui_ImplGLUT_NewFrame(). ( #6337 )
2023-04-17 14:44:56 +02:00
Elie Michel
d81f2ae4fb
Backends: WebGPU: Use WGSL shaders instead of precompiled SPIR-V + add Gamma uniform. ( #6188 )
...
Add gamma correction uniform
Group uniforms in a single binding
The second binding was not satisfying the minimum
BufferBindingType::Uniform alignment (256) and since this alignment is
large it is more idiomatic to group uniforms tegether.
Also ensures that the size of the uniform buffer is aligned to 16 bytes.
2023-04-11 16:03:26 +02:00
Elie Michel
e67f2f4791
Backends: WebGPU: Align buffer sizes upon creation. ( #6188 )
...
Amend from original pr to use a macro.
2023-04-11 15:46:05 +02:00
ocornut
cbdac1e150
Backends: WebGPU: Reorganized to store data in io.BackendRendererUserData like other backends.
...
In theory supporting multiple contexts (untested).
2023-04-11 15:25:21 +02:00
Michael Martz
506f7e0074
Using nullptr in locations where warning disable is not convenient. ( #6313 , #4537 )
2023-04-11 11:33:50 +02:00
ocornut
9203883bbe
Comments + Metal using SetTexID(0) for consistency.
2023-04-11 11:22:42 +02:00
David Maas
e92b29ad53
Backends: OSX: Added support for io.AddMouseSourceEvent(). ( #6314 )
...
Also marked "mouse" input in example_apple_metal's UIKit micro-backend as being touch input.
# Conflicts:
# docs/CHANGELOG.txt
2023-04-11 10:14:53 +02:00
David
db4c4e3321
Backends: Android: Added support for io.AddMouseSourceEvent(). ( #6315 , #6318 , #2702 , #4921 )
2023-04-11 10:01:53 +02:00
ocornut
a7703fe6f7
Backends: SDL2/SDL3: Avoid callng SDL_StartTextInput()/SDL_StopTextInput(). ( #6306 , #6071 , #1953 )
...
Amend 734c6af187
2023-04-06 19:12:10 +02:00
ocornut
f070497cbd
Backends: Win32/SDL2/SDL3/GLFW: Added support for io.AddMouseSourceEvent(). ( #2334 , #2702 )
...
SDL doesn't distinguish Pen yet, but we don't need it as much as TouchScreen which will alter trickling.
2023-04-04 20:19:01 +02:00
ocornut
8a6911b894
Backends: Fixes zealous warnings ( #5760 )
2023-03-23 18:18:52 +01:00
ocornut
7dcf129b3b
Backends: OpenGL3: Properly restoring "no shader program bound". ( #6267 , #6220 , #6224 )
2023-03-23 13:27:55 +01:00
Aiekick
91577c7f51
Backends: GLFW: Fixed key modifiers handling on secondary viewports. ( #6248 , #6034 )
2023-03-16 11:59:45 +01:00
ocornut
0d606968d8
Backend: OpenGL3: Amend b0c18166
fix cases where glGetString(GL_VERSION) returns NULL. ( #6154 , #4445 , #3530 )
2023-03-15 12:25:34 +01:00
ocornut
e39c2552ac
Backends: GLFW: Avoid using glfwGetError() and glfwGetGamepadState() on Emscripten. ( #6240 )
2023-03-14 16:00:29 +01:00
Cyphall
66b762577c
Backends: OpenGL3: Fixed restoration of a potentially deleted OpenGL program. ( #6220 , #6224 )
2023-03-06 11:55:55 +01:00
Adam Kewley
2496b973f9
Backends: SDL2,SDL3: Accept SDL_GetPerformanceCounter() not returning a monotonically increasing value. ( #6189 , #6114 , #3644 )
2023-02-23 15:07:15 +01:00
ocornut
5d74891285
Backends: Win32: Use WM_NCMOUSEMOVE / WM_NCMOUSELEAVE to track mouse positions over non-client area (OS decorations) when app is not focused. ( #6045 , #6162 )
2023-02-15 18:11:41 +01:00
Laurens Holst
b0c1816664
Backends: OpenGL3: Fixed loader compatibility with GL_VERSION for GL 2.x ( #6154 , #4445 , #3530 )
...
GL_MAJOR_VERSION and GL_MINOR_VERSION are available on GL 3.0 and above.
So we have to parse GL_VERSION under GL 2.x
Reference https://www.khronos.org/opengl/wiki/OpenGL_Context#Context_information_queries
Regressed since 459de65477
See https://github.com/ocornut/imgui/pull/3530
2023-02-14 15:39:49 +01:00
ocornut
85395b76b0
CI: Update versions.
...
Backends: GLFW: Warning fix under Linux.
2023-02-07 20:17:18 +01:00
ocornut
fac19e1883
Backends: SDL2:+SDL3 Implement SetPlatformImeDataFn (amends). ( #6071 , #1953 ) + fix SDL3 setting PlatformHandleRaw. ( #6146 )
2023-02-07 19:29:44 +01:00
imkzh
734c6af187
Backends: SDL2: Implement SetPlatformImeDataFn. ( #6071 , #1953 )
2023-02-07 18:50:12 +01:00
ocornut
13fbd99491
Backends: SDL3: update to run with SDL3. Examples: Add SDL3+Gl example. Remove some version checks. ( #6146 )
...
More update upcoming in docking branch.
2023-02-07 16:07:53 +01:00
ocornut
d9bf80f655
Backends: SDL3: copied imgui_impl_sdl2 into imgui_impl_sdl3 and ONLY replaced strings (1/2). ( #6146 )
...
NO OTHER CHANGES. This WILL NOT compile with SDL3.
This intermediate commit designed to make it easier to visualize the meaningful channges commit in the next commit.
2023-02-07 13:32:38 +01:00