Commit graph

10373 commits

Author SHA1 Message Date
ocornut
fe598f78c2 WIP - (Breaking) remove ImFontAtlasCustomRect which is now the same as ImTextureRect 2025-03-19 19:17:46 +01:00
ocornut
1a20e47459 WIP - Added back support for AddCustomRectFontGlyph()
Legacy path naturally works.
2025-03-19 19:17:46 +01:00
ocornut
efbd8f8328 WIP - ImFontAtlasBuildInit() uses the occasion to sync HasTexUpdates from imgui context, narrowing the scope where it isn't set. 2025-03-19 19:17:46 +01:00
ocornut
14500d0084 WIP - Comments, remove ImFontAtlas facing BuildGrowTexture(), BuildCompactTexture(). Make IsBuilt() obsolete. 2025-03-19 19:17:46 +01:00
ocornut
0689a23a53 WIP - Basic heuristic to repack instead of growing. Moved rects count/surface to internals. 2025-03-19 19:17:46 +01:00
ocornut
bf78e2ca8a WIP - Added atlas's TexMinWidth/TexMinHeight/TexMaxWidth/TexMaxHeight.
Fixed ImFontAtlasBuildGetTextureSizeEstimate().
Basic error handling on OOM.
2025-03-19 19:17:46 +01:00
ocornut
959cf4a8e9 WIP - Ensure UpdateBox is set on texture _WantCreate state too. 2025-03-19 19:17:46 +01:00
ocornut
5b841f486e WIP - Turn public facing BuildRegisterGlyph() into ImFontAtlasBuildAddFontGlyph() thats sets up UV. 2025-03-19 19:17:46 +01:00
ocornut
cf7cb3a83f WIP - Rasterizing ellipsis character from dot as one glyph + avoid preloading if it not needed. 2025-03-19 19:17:46 +01:00
ocornut
cb82271db6 WIP - Fixed support for multiple contexts. 2025-03-19 19:17:46 +01:00
ocornut
0e48101aca WIP - Added ImFontAtlas::RemoveFont(), fixed various leaks. 2025-03-19 19:17:45 +01:00
ocornut
13fe11f4f0 WIP - Marked ImFontAtlas::Build() as obsolete 2025-03-19 19:17:45 +01:00
ocornut
dc17d5f30d WIP - ClearCache(), ImFontAtlasBuildGetTextureSizeEstimate(), tweak clearing functions. 2025-03-19 19:17:45 +01:00
ocornut
5c90a285d9 WIP - Fix for password fields 2025-03-19 19:17:45 +01:00
ocornut
e460fa534e WIP - Use a structure for post-processing - easier to pass things around and iterate on. 2025-03-19 19:17:45 +01:00
ocornut
1e46a831ea WIP - Repack without full reload, discard rectangle, fixed CustomRect api with stable id, remove public BuildInit(). 2025-03-19 19:17:45 +01:00
ocornut
239d8ad95d WIP - Measured and tweaked CalcTextSize() computation to minimize cost in our stress tests. 2025-03-19 19:17:45 +01:00
ocornut
4f89874620 WIP - Misc amends, remove _PackNodesFactor, comments. 2025-03-19 19:17:45 +01:00
ocornut
4bcccbef87 WIP - ImFontAtlas accept DrawListSharedData not being set. 2025-03-19 19:17:45 +01:00
ocornut
ab92530684 WIP - Optimization bake FallbackAdvanceX into IndexAdvanceX[]. 2025-03-19 19:17:45 +01:00
ocornut
030b710da1 WIP - (Breaking) Removed atlas->TexDesiredWidth now unnecessary (github 327) 2025-03-19 19:17:45 +01:00
ocornut
2ab4fa7be6 WIP - Use TexGlyphPadding + Fixed packing issues. 2025-03-19 19:17:45 +01:00
ocornut
368085220a WIP - Removed old code. 2025-03-19 19:17:45 +01:00
ocornut
571b9b11e8 WIP - AddFont() actually does the work, so we can handle errors & return an accurate return value. 2025-03-19 19:17:45 +01:00
ocornut
1d1fbfeee0 imgui_freetype: Removing old code. 2025-03-19 19:17:45 +01:00
ocornut
62bb369d07 imgui_freetype: Added Freetype implementation for new architecture. 2025-03-19 19:17:45 +01:00
thedmd
fa9c2589d6 WIP - Backends: Metal: added ImGuiBackendFlags_RendererHasTextures support. 2025-03-19 19:17:45 +01:00
ocornut
461a7e9c88 WIP - Backends: Allegro5: added ImGuiBackendFlags_RendererHasTextures support. 2025-03-19 19:17:45 +01:00
ocornut
b9e6cc4ce7 WIP - Backends: SDLGPU3: added ImGuiBackendFlags_RendererHasTextures support. 2025-03-19 19:17:45 +01:00
ocornut
7073cd6d6f WIP - Backends: SDL_Renderer3: added ImGuiBackendFlags_RendererHasTextures support. 2025-03-19 19:17:44 +01:00
ocornut
43dbebdf1c WIP - Backends: SDL_Renderer2: added ImGuiBackendFlags_RendererHasTextures support. 2025-03-19 19:17:44 +01:00
ocornut
9043a886be WIP - Backends: Vulkan: added ImGuiBackendFlags_RendererHasTextures support. 2025-03-19 19:17:44 +01:00
ocornut
91a6600e8f WIP - Backends: OpenGL2: added ImGuiBackendFlags_RendererHasTextures support. 2025-03-19 19:17:44 +01:00
ocornut
ff3f471ab2 WIP - Backends: OpenGL3: added ImGuiBackendFlags_RendererHasTextures support. 2025-03-19 19:17:44 +01:00
ocornut
4d6e317932 WIP - Backends: DirectX12: added ImGuiBackendFlags_RendererHasTextures support. 2025-03-19 19:17:44 +01:00
ocornut
5898ce58b1 WIP - Backends: DirectX10: added ImGuiBackendFlags_RendererHasTextures support. 2025-03-19 19:17:44 +01:00
ocornut
d58c55a2d9 WIP - Backends: DirectX9: added ImGuiBackendFlags_RendererHasTextures support. 2025-03-19 19:17:44 +01:00
ocornut
ae87bd6141 WIP - Backends: DirectX11: added ImGuiBackendFlags_RendererHasTextures support. 2025-03-19 19:17:44 +01:00
ocornut
cd1515f372 WIP - Adding a RefCount to textures so backend can avoid destroying them on shutdown if atlas is shared. 2025-03-19 19:17:44 +01:00
ocornut
37fdb2c028 WIP - Single Textures[] array allows backend to not have to care about atlases. 2025-03-19 17:55:57 +01:00
ocornut
8a18460fc5 WIP - Add ImTextureUserID_Invalid + introducing SetTexUserID().
Which gives us room for potentially updating ImDrawData during render.
2025-03-19 17:55:57 +01:00
ocornut
4f22925925 WIP - Selecting font config source list done by shared code. 2025-03-19 17:55:57 +01:00
ocornut
836d47d42f WIP - (squash) Rename FontBackend -> FontLoader 2025-03-19 17:55:57 +01:00
ocornut
150d29d051 WIP - Main code for ImGuiBackendFlags_RendererHasTextures feature. 2025-03-19 17:55:57 +01:00
ocornut
630ce42363 WIP (Breaking) added ImTextureRef struct.
Softly breaking. May require support from language binding generator.
Rebased and reworked completely on 2025/03/19.
2025-03-19 17:55:57 +01:00
ocornut
790f2b9a7a Merge branch 'master' into docking 2025-03-19 17:54:42 +01:00
ocornut
d467950a5e Style, InputText: added ImGuiCol_InputTextCursor to configure color of the InputText cursor/caret. (#7031) 2025-03-19 17:50:40 +01:00
ocornut
0ecb2bbe74 Version 1.92.0 WIP 2025-03-19 17:45:20 +01:00
ocornut
ee48ffe021 Added comments about line/rect thickness needing scaling. (#7031) 2025-03-19 17:42:19 +01:00
ocornut
5679de60c5 Error Handling: added better report and recovery for extraneous EndPopup() call. (#1651, #8499) 2025-03-18 17:35:43 +01:00