mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
Fonts: encode additional data in ImFontAtlasRectId to detect invalid id + added Rects debug browser.
This commit is contained in:
parent
0436fba13c
commit
ed2bb2cff0
4 changed files with 94 additions and 17 deletions
2
imgui.h
2
imgui.h
|
|
@ -3509,7 +3509,7 @@ struct ImFontGlyphRangesBuilder
|
|||
IMGUI_API void BuildRanges(ImVector<ImWchar>* out_ranges); // Output new ranges
|
||||
};
|
||||
|
||||
// An identifier to a rectangle in the atlas. -1 when invalid.
|
||||
// An opaque identifier to a rectangle in the atlas. -1 when invalid.
|
||||
// The rectangle may move and UV may be invalidated, use GetCustomRect() to retrieve it.
|
||||
typedef int ImFontAtlasRectId;
|
||||
#define ImFontAtlasRectId_Invalid -1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue