ocornut
2747a8ca40
Turned ImVec2 to const ref to RenderChar(), RenderText(), ColorButton(), PushClipRect(). for consistency. Comments about polygon filling winding order.
3 years ago
cfillion
7d7bf993bb
ImDrawList: Fix texture-based anti-aliasing with RGBA textures ( #5132 , #3245 )
When using an Alpha8 font texture, GetTexDataAsRGBA32 converts 0x00 to transparent white.
When using a RGBA32 font texture, ImFontAtlasBuildRenderLinesTexData was writing transparent black.
3 years ago
ocornut
fd06ed833b
Misc: tweaks + fix warnings on backends withtout -wno-memaccess ( #4995 , #5104 )
3 years ago
ocornut
279db55840
Updated stb_rect_pack.h from 1.00 to 1.01. ( #5075 )
(our STBRP__CDECL change was merged)
3 years ago
jakubtomsu
3deb92c2c5
Add IMGUI_STB_SPRINTF_FILENAME to support custom stb_printf.h include path ( #5068 , #2954 )
3 years ago
thedmd
4691fa0ed5
ImDrawList: PthArcTo: Add small tolerance when comparing angles ( #4993 )
3 years ago
ocornut
88de982071
Version 1.88 WIP
3 years ago
ocornut
97b1abd6dd
Internals: rework RenderMouseCursor() signature so we can use it in docking branch more naturally.
3 years ago
ocornut
c71a50deb5
Version 1.87
3 years ago
Clownacy
422902dbda
Correct typos ( #4954 , #4955 ), use IM_STATIC_ASSERT now that old pre-C++11 macro has been obsoleted.
3 years ago
ocornut
075f4ac661
Don't merge ImDrawCmd which have had their IdxOffset changed to not be sequential. Fixed CTRL+Tab into an empty window causing artefacts on the highlight rectangle due to bad reordering on ImDrawCmd.
This is bit of a weird edge case adding weight to ImDrawCmd merging, if we could rework the mess in RenderDimmedBackgroundBehindWindow() we may be able to undo some of that.
3 years ago
Jonathan Hoffstadt
83d22f4e48
Tables, ImDrawListSplitter: Fixed erroneously stripping trailing ImDrawList::AddCallback().( #4843 , #4844 )
3 years ago
ocornut
89a28209e8
Version 1.87 WIP + Backends: OpenGL3: Fixed a buffer overflow in imgui_impl_opengl3_loader.h init, added in 1.86 ( #4468 , #4830 )
3 years ago
ocornut
512c54bbc0
Version 1.86
3 years ago
ocornut
d7350668d1
Fix OSX warnings + Examples/Apple+GL2 calls super reshape. ( #4759 , #1873 )
3 years ago
SlavicPotato
f71ee5203e
Fix infinite loop in ImFontGlyphRangesBuilder::AddRanges if the user passes upper range = UINT16_MAX without IMGUI_USE_WCHAR32. ( #4802 )
3 years ago
ocornut
270d4d0855
Nav, Docking: Fix crash on dimming docked window and DockSpaceOverViewport() with PassthruCentralNode.
(amend 1dc3af3
, 23ef6c1
, 657073a
)
# Conflicts:
# imgui.cpp
3 years ago
ocornut
5b1a70aa2d
Fixed RenderRectFilledWithHole() (used by docking) + added dummy EndFrameDrawDimmedBackgrounds() stub in master.
The round corner flag change in 033dfd9d
forgot to default to _None.
3 years ago
ocornut
3fde445b91
Misc: Added missing ImGuiMouseCursor_NotAllowed cursor for software rendering (when io.MouseDrawCursor is enabled). ( #4713 )
3 years ago
ocornut
e3bd9434b1
1.86 WIP + internals: tweaks table temp data code.
3 years ago
ocornut
55d35d8387
Version 1.85
3 years ago
ocornut
4a7c21d330
Fonts: Fixed ImFontAtlas::ClearInputData() marking atlas as not built. ( #4455 , #3487 )
3 years ago
ocornut
0649f750b4
Version 1.85 WIP
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
thedmd
cb00972b87
ImDrawList: Fix AddCircle{Filled} with 12 segment case ( #4419 , #4421 )
3 years ago
ocornut
327a5d8253
Fix warning + apply trailing whitespaces in stb_ libs (as applied on nothings/stb on 2020/02/02, facilitating further diffs)
3 years ago
ocornut
23a15834fa
Fonts: Fix calling ClearTexData() (clearing CPU side font data) triggering an assert in NewFrame(). ( #3487 ) + Backends: added additional assert to facilitate detecting user understand they haven't initialized a backend.
3 years ago
ocornut
b5a2bd1a5b
Backends: amends to 1db1066 + merge minor bits from docking incl SetActiveIdUsingNavAndKeys().
No need to clear fields before deletion. DX12: renamed to match docking branch.
3 years ago
ocornut
95db098477
ImFontAtlas: move implicit AddFontDefault call to Build() function + remove unnecessary asserts in backend.
3 years ago
ocornut
9440974f66
Fonts: Add U+FFFD ("replacement character") to default asian glyphs ranges. Remove SetFallbackChar() (amend 0ffd99d31
). ( #4269 )
3 years ago
ocornut
38165f420f
Fonts: Prefer using U+FFFD character for fallback instead of '?'. Use U+FF0E dot character to construct an ellipsis if U+002E '.' is not available. ( #4269 )
3 years ago
ocornut
e534c56485
Fonts: Functions with a 'float size_pixels' parameter can accept zero if it is set in ImFontSize::SizePixels.
3 years ago
ocornut
dc676236f0
Minor optimization, removing do/while(0) patterns in some cases as they translate to runtime
(e.g. translate to xor + test + jne in VS x84, unnecessary)
3 years ago
ocornut
0cca0d1617
Internals/experimental: BeginComboPreview(), EndComboPreview(). ( #4168 , #1658 )
(amended)
3 years ago
ocornut
d0c6dd9baf
ImVector: added clear_delete(), clear_destruct() helpers.
3 years ago
ocornut
e31d13fa76
Version 1.84 WIP
4 years ago
ocornut
ad5d1a8429
Version 1.83
4 years ago
Bartosz Taudul
4c9f0cec27
Add and use SSE-enabled ImRsqrt() in place of 1.0f / ImSqrt(). ( #4091 )
Squashed 3 commits.
4 years ago
ocornut
89162a04f4
Fixes for PVS Studio and MSVC static analyzers. Using a macro to suppress single-use MSVC false positives. ( #3938 , #4073 )
4 years ago
ocornut
d28535f351
Fixes for Visual Studio 2019 static analyzers. ( #3938 , #4073 ) + two minor edge case were invalid scalar input (e.g. a sign only) would return buffer as modified.
4 years ago
Nick Lange
04e98fbe6b
Remove const qualifier on ImTextureID local ( #4060 )
When defining ImTextureID to a type such as Texture*, the const-qualifier here stops us from using the texture ID. const Texture* is not valid to be pushed as a texture ID anymore.
4 years ago
ocornut
25fbff2156
ImDrawList: Revert alteration of normal scaling threshold, for now prioritize preserving property of limiting extents. ( #4053 , #3366 , #2964 , #2868 , #2518 , #2183 )
Amend fdda8b8
4 years ago
ocornut
fdda8b8c12
ImDrawList: Fixed/improved thickness of thick strokes with sharp angles. ( #4053 , #3366 , #2964 , #2868 , #2518 , #2183 )
4 years ago
thedmd
690a90bd35
Make PathArcTo accept counter-clockwise angles ( #4030 , #3491 )
4 years ago
ocornut
7c9c5dbe9a
Internals: Added ImFloorSigned() + use our own ImFloorSigned() for stb_truetype, compared as matching output for variety of font data. ( #2884 )
4 years ago
ocornut
b957300260
Documentation tweaks ( #4042 )
4 years ago
ocornut
a1a39c632a
Version 1.83 WIP
4 years ago
ocornut
35b1148efb
Version 1.82
4 years ago
ocornut
033dfd9d35
ImDrawFlags: rework/revert c2d6d26
+ 39432bf
in a way that is closer to old version and back to opt-in but with default 0 = all corners.
4 years ago
ocornut
39432bfd9c
Amend 0c93238a ImDrawList: upgraded AddRect(), AddRectFilled(), PathRect() to use general ImDrawFlags instead of ImDrawCornersFlags
4 years ago