Clownacy
c6cab1f352
Backends: SDL: Added SDL_Renderer* parameter to ImGui_ImplSDL2_InitForSDLRenderer(). Use SDL_GetRendererOutputSize() instead of SDL_GL_GetDrawableSize() when bound to a SDL_Renderer. ( #4927 )
This is (kind of) an OpenGL-only function, which should be avoided when SDL2 isn't using OpenGL.
The only alternative that is recommended is SDL_GetRendererOutputSize, which limits this fix to the SDL_Renderer backend. Still, I think it's better than nothing.
I say that SDL_GL_GetDrawableSize is "kind of" OpenGL-only because it does technically work even when SDL2 isn't using OpenGL.
It's just that it becomes a shim to SDL_GetWindowSize, which is not suitable for high-DPI usage because it reflects the size of the window in screen coordinates, not actual pixels, so it really should be avoided when not using OpenGL.
3 years ago
ocornut
ceb26bac48
Backends: Vulkan: Added support for ImTextureID as VkDescriptorSet, amends. ( #914 )
3 years ago
ocornut
673f5e588d
IO: moved fields to put more focus on the new functions + update misc docs/references + update main.mm in Apple+Metal example ( #4858 )
3 years ago
ocornut
6188e94108
Examples: Vulkan: fill Subpass and MSAASamples to increase discoverability ( #4886 ) + IO docs update ( #4858 )
https://github.com/mosra/magnum-integration/pull/89
3 years ago
thedmd
ee436aa803
Backends: OSX: Update to use io.AddEventKey() will full key map ( #2625 , #1873 , #4858 )
3 years ago
ocornut
d9bc1e44af
Backends: Marmalade: Removed obsolete Marmalade backend (imgui_impl_marmalade.cpp) + example. ( #368 , #375 )
3 years ago
ocornut
d7350668d1
Fix OSX warnings + Examples/Apple+GL2 calls super reshape. ( #4759 , #1873 )
3 years ago
Stuart Carnie
1b6b8602c1
Backends: OSX: Fix keyboard support. Handle scroll cancel. Don't set mouse cursor shape unconditionally. ( #4759 , #4253 , #1873 )
Note the original FIXME: refered to GLFWs Cocoa implementation, which is largely what this commit provides.
3 years ago
Stuart Carnie
b720f1f03c
Backends: OSX: Add Game Controller support. ( #4759 )
3 years ago
liam
ad3f54ff1a
Examples: Emscripten comments ( #4650 , #4662 ), standardize readme
3 years ago
ocornut
fba756176d
Backends: SDL_Renderer: Amend 1d2d246, various tweaks, fixes, sync to latest. ( #3926 )
3 years ago
Sylvain
62b17f928e
Backends: SDL_Renderer: Added renderer backend for SDL 2.0.17+ ( #3926 )
(Squashed 20 commits)
3 years ago
ocornut
11103f8253
Examples: SDL+OpenGL3: fixed build on ES2 target. ( #4492 )
3 years ago
ocornut
6afe9bbb45
Projects: added GLFW Vulkan to default solution.
3 years ago
ocornut
d2ffbd9b86
Version 1.84
Fix PVS Studio false positive //-V1020
Fix missing #ifndef for IMGUI_IMPL_OPENGL_LOADER_CUSTOM path
3 years ago
ocornut
e3988a84db
Backends: OpenGL3: Embed our own minimal GL loader (amends). ( #4445 )
3 years ago
Rokas Kupstys
459de65477
Backends: OpenGL3: Embed our own minimal GL loader based on gl3w and use it in SDL/GLFW examples. ( #4445 )
Loader repository at https://github.com/dearimgui/gl3w_stripped
Removed support for using custom loaders in examples/opengl3 backend
3 years ago
ocornut
f24abbc47d
Fix various warnings ( #4442 )
3 years ago
David Maas
923bd2fd21
Examples: DirectX12: Fixed Alt+Enter fullscreen in DirectX12 example. ( #4346 , #4348 )
This also removes unnecessary recreation of backend-owned device objects when the window is resized.
+ amend original PR with a g_pSwapChain->SetFullscreenState(false, NULL); call.
3 years ago
Giovanni Funchal
6792e1a3e0
Backends: SDL2: Remove unnecessary ImGui_ImplSDL2_NewFrame() parameter. ( #3244 )
3 years ago
rokups
88f4c1321a
Examples: Bring code of example_apple_metal and example_apple_opengl2 closer to each other. ( #1873 , #3543 )
4 years ago
rokups
30224fdde0
Examples: example_apple_opengl2: Fix keys remaining stuck in pressed state when using shortcuts with CMD. ( #4253 )
Fix follows event capture scheme of example_apple_metal, where this issue is not present.
3 years ago
ocornut
020d1ced1d
Examples: SDL2: Accomodate for vcpkg install having headers in SDL2/SDL.h vs SDL.h + vcpkg related comments.
3 years ago
ocornut
7fc144edde
Examples: update all VS project files to VS2015. Update DX12 project Windows SDK to latest.
3 years ago
Basil Fierz
83bdfef8e0
Backends: WGPU: update to latest specs. ( #4116 , #3632 )
Merged 13 commits.
4 years ago
ITotalJustice
ea9122b0ac
Examples: add backends include path in readmes. ( #4106 )
4 years ago
duddel
05a20ca738
Examples: Android: Make Android build compatible with Gradle 7.0. ( #3446 )
4 years ago
ocornut
b957300260
Documentation tweaks ( #4042 )
4 years ago
Rokas Kupstys
bcdc8bcc4b
Examples: Vulkan: Update GPU selection to pick discrete GPU if available, or use first GPU otherwise. ( #4012 )
Fixes examples failing on optimus laptops with integrated graphics not supporting Vulkan.
4 years ago
Peter Kristensen
5f45047fb6
Update example makefiles to check the new homebrew paths ( #4003 )
Homebrew on Apple Silicon (i.e. Macbook Air/Pro M1) use `/opt/homebrew` instead of /usr/local.
4 years ago
ocornut
2403ed92a3
Added build/ to gitignore ( #3027 ), Examples: SDL2: Link with shell32.lib required by SDL2main.lib since SDL 2.0.12. [ #3988 , #3884 ] + added batch file for SDL+Vulkan.
4 years ago
Nikolai Wuttke
c6c15a44fa
Examples: Add OpenGL ES 2.0 support to modern GL examples. ( #2837 , #3951 )
4 years ago
ocornut
6f360d6040
Examples: Win32: using a more explicit loop for PeekMessage polling to make the code easier to copy and paste and less error-prone.
4 years ago
ocornut
6e4770ea5c
Examples: Vulkan: Rebuild swapchain on VK_SUBOPTIMAL_KHR. ( #3881 )
Ref https://vulkan-tutorial.com/Drawing_a_triangle/Swap_chain_recreation#page_Suboptimal-or-out-of-date-swap-chain
4 years ago
ocornut
fdc2324d9a
Moved 'misc/natvis/imgui.natvis' to 'misc/debuggers/imgui.natvis'
4 years ago
ocornut
8dd692c29c
Android: Amend backend and examples with minor consistency tweaks. ( #3446 )
4 years ago
duddel
fb85c0341b
Add Android backend and example ( #3446 )
4 years ago
Xiliusha
eb57484935
Backends: DX9: add missing IMGUI_USE_BGRA_PACKED_COLOR support. Remove dinput.h headers. ( #3844 )
4 years ago
Rokas Kupstys
3f5bb5939a
Examples: Fix MinGW detection in makefiles. Fix example_null build due to missing IME input libs. ( #2590 )
4 years ago
ocornut
9b32f7bf2d
Fix example_null Makefile for Mingw ( #2590 )
4 years ago
ocornut
6a161b8789
Examples: Reworked setup of clear color to be compatible with transparent values. ( #2693 , #2764 , #2766 , #2873 , #3447 , #3813 , #3816 )
4 years ago
ocornut
647a308ad3
Backends: GLFW: Add ImGui_ImplGlfw_InitForOther() instead of ImGui_ImplGlfw_InitForWebGPU() so it can be used for e.g. DX11. ( #3632 )
Amend dff0044
4 years ago
ocornut
b898281e3c
Demo: Added 'Examples->Fullscreen Window' demo. ( #3789 ) + repack and zero-clear ImDrawData.
4 years ago
ocornut
dff0044d4e
Backends, Examples: Added support for WebGPU and corresponding example. Amend 5853fbd
( #3632 )
4 years ago
Basil Fierz
5853fbd68b
Backends, Examples: Added support for WebGPU and corresponding example ( #3632 )
(Squashed 11 commits)
4 years ago
ocornut
feaa7ea003
Examples: Emscripten: Amend ba636c5. ( #3705 )
4 years ago
Horki
0f14dd9781
Examples: Emscripten: Add 'make serve' helper, move output to web/ folder. ( #3705 )
4 years ago
ocornut
7d5d5711c2
Backends: OpenGL2, OpenGL3: Backup and restore GL_SHADE_MODAL, GL_STENCIL_TEST, clear GL_NORMAL_ARRAY. Comments., ( #3671 , #3668 )
4 years ago
ocornut
8ec5daf35d
Happy new year!
4 years ago
ocornut
3346544cf5
Examples: Fix batch files (amend b1a18d82
, #3513 ), standardize them + DirectX12: Move ImGui::Render() call above the first barrier to clarify its lack of effect on the graphics pipe.
4 years ago