tools: About, Debug Log, ID Stack Tool, ShowFontAtlas/DebugNodeFont/Texture, ShowFontSelector; debug log macros route to DebugLog; GetID hooks

This commit is contained in:
4DBug committed 2026-10-08 08:33:57 -05:00
1 parent 560b596bb9
commit e627af1dba
7 files changed
+1288 -25

No files matched your search

+7 -2
View File
@@ -1414,7 +1414,7 @@ function ImFontAtlasBakedDiscard(atlas, font, baked)
font.LastBaked = nil
end
local function ImFontAtlasFontDiscardBakes(atlas, font, unused_frames)
function ImFontAtlasFontDiscardBakes(atlas, font, unused_frames)
local builder = atlas.Builder
if builder then
for baked_n = 1, builder.BakedPool.Size do
@@ -1746,7 +1746,7 @@ function ImFontAtlasTextureGetSizeEstimate(atlas)
end
--- @param atlas ImFontAtlas
local function ImFontAtlasBuildClear(atlas)
function ImFontAtlasBuildClear(atlas)
local new_tex_size = ImFontAtlasTextureGetSizeEstimate(atlas) -- ImVec2i
ImFontAtlasBuildDestroy(atlas)
ImFontAtlasTextureAdd(atlas, new_tex_size.x, new_tex_size.y)
@@ -2098,6 +2098,11 @@ function MT.ImFontBaked:FindGlyph(c)
return (glyph) and glyph or self.Glyphs.Data[self.FallbackGlyphIndex]
end
function MT.ImFontBaked:IsGlyphLoaded(c)
if c >= self.IndexLookup.Size then return false end
return self.IndexLookup.Data[c + 1] ~= IM_FONTGLYPH_INDEX_UNUSED
end
--- @param c ImWchar
--- @return ImFontGlyph?
function MT.ImFontBaked:FindGlyphNoFallback(c)