Commit graph

8747 commits

Author SHA1 Message Date
ocornut
ddf1dd565c Shadows: remove use of GetWindowContentRegionMax(). 2025-03-03 19:04:33 +01:00
ocornut
52bea181f6 Shadows: Fix broken shadows due to zero-clear added in 9417acc2 2025-03-03 19:04:33 +01:00
ocornut
c9729b4388 Shadows: Fix to support for colored-only font atlas. (4202) 2025-03-03 19:04:33 +01:00
ocornut
694792db77 Shadows: Fix for latest, reuse ImDrawList, remove ImDrawShadowFlags. 2025-03-03 19:04:33 +01:00
ocornut
0133b62781 Shadows: Fixes + two fixes for PVS Studio static analyzer. 2025-03-03 19:04:33 +01:00
omar
ea0f0d81cd Shadows: Shallow styling tweaks and renaming for consistency. 2025-03-03 19:04:33 +01:00
omar
ed16f8fe6b Shadows: Re-added AddShadowNGon(). 2025-03-03 19:04:33 +01:00
omar
ef807b6671 Shadows: Added ImDrawShadowFlags, simplified API surface, reordered parameters
+ fix minor warnings
+ removed NGon variant for now.
2025-03-03 19:04:33 +01:00
Ben Carter
0e83ee2c63 Shadows: Convex shape shadow improvement/fixes
Fixed pixel cracking on convex shadow edges
Added convex shadow offset support
Fixed some convex shadow fringing issues
Added convex shadow demo code

# Conflicts:
#	imgui_demo.cpp
2025-03-03 19:04:33 +01:00
omar
ee4fb609eb Shadows: Tweak demo to use AddShadowCircle() functions + fix warnings.
(+ stripped old polygon generation code from commits)
# Conflicts:
#	imgui_demo.cpp
2025-03-03 19:04:32 +01:00
Ben Carter
e1fb724234 Shadows: Added initial version of convex shape shadow code.
(+stripped out of original polygon generation demo, moved to imgui_dev)
2025-03-03 19:04:32 +01:00
ocornut
9f3087b5e7 Shadows: Demo code in Custom Rendering section. Added AddShadowRectFilled() variant. BeginMainMenuBar() disable shadows. 2025-03-03 19:04:32 +01:00
Ben Carter
35f1982b86 Shadows: Added experimental texture-based shadows (stripped of dynamic tex config and back-end code)
(merged 10 commits, removing dynamic tex config, moved tex config to internal structs, removed back-end changes)

Shadows: Added  IMGUI_HAS_SHADOWS
2025-03-03 19:04:32 +01:00
ocornut
71b160cdbb Demo: (Refactor) Moved code into DemoWindowWidgetsDisableBlocks() section. 2025-03-03 18:56:21 +01:00
ocornut
7a919e80c9 Demo: (Refactor) Moved code into DemoWindowWidgetsQueryingStatuses() section. 2025-03-03 18:54:02 +01:00
ocornut
0758594bd2 Demo: (Refactor) Moved code into DemoWindowWidgetsDragAndDrop() section. 2025-03-03 18:54:01 +01:00
ocornut
9b486e47fe Demo: (Refactor) Moved code into DemoWindowWidgetsDragsAndSliders(), DemoWindowWidgetsMultiComponents(), DemoWindowWidgetsVerticalSliders() sections. 2025-03-03 18:47:11 +01:00
ocornut
caf3faa054 Demo: (Refactor) Moved code into DemoWindowWidgetsColorAndPickers() section. 2025-03-03 18:46:44 +01:00
ocornut
510a9a77d6 Demo: (Refactor) Moved code into DemoWindowWidgetsDataTypes() section. 2025-03-03 18:46:44 +01:00
ocornut
4d0c776a80 Demo: (Refactor) Moved code into DemoWindowWidgetsPlotting(), DemoWindowWidgetsProgressBars(), DemoWindowWidgetsTabs() sections. 2025-03-03 18:46:44 +01:00
ocornut
4450d61ac2 Demo: (Refactor) Moved code into DemoWindowWidgetsSelectables(), DemoWindowWidgetsTextFilter(), DemoWindowWidgetsTextInputs() sections. 2025-03-03 18:46:44 +01:00
ocornut
22baec494b Demo: (Refactor) Moved code into DemoWindowWidgetsComboBoxes(), DemoWindowWidgetsImages(), DemoWindowWidgetsListBoxes() sections. 2025-03-03 18:46:44 +01:00
ocornut
94877a137d Demo: (Refactor) Moved code into DemoWindowWidgetsBullets(), DemoWindowWidgetsCollapsingHeaders(), DemoWindowWidgetsCollapsingText() sections. 2025-03-03 18:46:44 +01:00
ocornut
de3f68a233 Demo: (Refactor) Moved code into DemoWindowWidgetsTooltips(), DemoWindowWidgetsTreeNodes() sections. 2025-03-03 18:46:44 +01:00
ocornut
b2c55c9db5 Demo: (Refactor) Moved code into DemoWindowWidgetsBasic() section. 2025-03-03 18:46:44 +01:00
ocornut
eefd2da0f6 Demo: (Refactor) Added new empty sections.. Renamed existing helper functions. 2025-03-03 18:46:43 +01:00
ocornut
ce13f6b73e Backends: GLFW: Fixed clipboard handler assertion when using GLFW <= 3.2.1 compiled with asserts enabled. (#8452)
Amend 8e4010479
2025-03-03 13:11:16 +01:00
ocornut
4819eae867 Clipper: Fixed an issue where passing an out of bound index to IncludeItemByIndex() could incorrectly offset the final cursor.
One case where it would manifest was calling Combo() with an out of range index. (#8450)
2025-03-02 14:15:11 +01:00
ocornut
c5ade6591e TextLink(), TextLinkOpenURL(): fixed honoring text baseline alignment. (#8451, #7660) 2025-03-02 13:40:51 +01:00
ocornut
9c2876b9f8 ShowFontAtlas() uses ImageWithBg(). (#8131, #8238)
Amend 494ea57
2025-02-27 22:04:56 +01:00
ocornut
1aab00da85 Misc shallow tweaks/tidying up. (#8446) 2025-02-27 21:58:02 +01:00
ocornut
482a1f50b6 Internals: rename ImGuiDataVarInfo to ImGuiStyleVarInfo. Move ImGuiStyleMod, ImGuiColorMod to own section.
# Conflicts:
#	imgui.cpp
2025-02-27 21:51:07 +01:00
ocornut
494ea57b65 Image: removed 'tint_col', 'border_col' parameters from Image(). Added ImageWithBg(). Added style.ImageBorderSize, ImGuiStyleVar_ImageBorderSize. (#8131, #8238)
Displaying a black background behind Font Atlas texture.
2025-02-27 21:48:24 +01:00
Alan
cdafefd4be
Backends: WebGPU: Add nextInChain field for VertexAttributes under Dawn (#8438) 2025-02-27 13:47:33 +01:00
Alan
8bd3e20c86
Backends: WebGPU: include imgui.h before backend check (#8437) 2025-02-27 00:06:31 +01:00
ocornut
aa83d5d455 Backends: SDL2, SDL3: Only start SDL_CaptureMouse() when mouse is being dragged. (#6410, #3650)
To mitigate issues with e.g. Linux debuggers not claiming capture back.
2025-02-26 15:34:31 +01:00
Jose L. Hidalgo (PpluX)
aaacb01b8d Backends: WebGPU: Recreate image bind groups during render. (#8426, #8046, #7765, #8027) 2025-02-26 15:20:08 +01:00
ocornut
9996a2d51b Backends: WebGPU: update code for latest webgpu-native changes. Fix for Emscripten. (#8426) 2025-02-26 15:16:38 +01:00
ocornut
6aa0810de5 Backends: WebGPU: update code for latest webgpu-native changes. Amend. (#8426) 2025-02-26 15:10:28 +01:00
Jose L. Hidalgo (PpluX)
4f4fb1d220 Backends: WebGPU: update code for latest webgpu-native changes. (#8426) 2025-02-26 14:56:49 +01:00
ocornut
242d856ede Examples: SDL3+SDL_Renderer: removed reference to OpenGL to remove confusion. (#8434)
Amend
2025-02-26 14:40:41 +01:00
Russ Gibson
a86fcbd947
Examples: SDL3+SDL_Renderer: removed reference to OpenGL to remove confusion. (#8434) 2025-02-26 14:38:08 +01:00
ocornut
4c0604ec2e Font: shallow refactor, rename ConfigData[] fields to Sources[], ConfigDataCount to SourcesCount.
In theory this is all internal stuff.
2025-02-25 17:41:29 +01:00
ocornut
6e29450f76 Internals: added IsItemActiveAsInputText() helper. 2025-02-25 16:02:10 +01:00
ocornut
030746faff Debug Tools: Added io.ConfigDebugHighlightIdConflictsShowItemPicker. (#7961, #7669) 2025-02-24 17:45:16 +01:00
TheMode
dac40d0487 Backends: SDL2, SDL3: don't call SDL_GetGlobalMouseState() when mouse position is in relative mode. (#8425, #8407) 2025-02-24 12:26:48 +01:00
ocornut
ef969a53f5 Tabs: fixed Unsaved Marker not being visible when Close Button is. (#8430, #8387) 2025-02-24 11:44:48 +01:00
ocornut
5dce79e941 Backends: DirectX12: Fixed an issue where pre-1.91.5 legacy ImGui_ImplDX12_Init() signature started breaking in 1.91.8 due to missing command queue. (#8429) 2025-02-24 10:52:15 +01:00
Tygyh
74afea04d6
Fix typos in docs (#8427) 2025-02-22 23:36:40 +01:00
ocornut
edc66d79c7 Nav: extract code into a NavUpdateWindowingApplyFocus() so it may be reused elsewhere. 2025-02-21 23:11:11 +01:00