You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ImVec2 TexUvWhitePixel; // Texture coordinates to a white pixel
3705
3686
ImVector<ImFont*> Fonts; // Hold all the fonts returned by AddFont*. Fonts[0] is the default font upon calling ImGui::NewFrame(), use ImGui::PushFont()/PopFont() to change the current font.
3706
3687
ImVector<ImFontConfig> Sources; // Source/configuration data
3707
-
//ImVector<ImFontAtlasCustomRect> CustomRects; // Rectangles for packing custom texture data into the atlas.
3708
3688
ImVec4 TexUvLines[IM_DRAWLIST_TEX_LINES_WIDTH_MAX + 1]; // UVs for baked anti-aliased lines
3709
3689
int TexNextUniqueID; // Next value to be stored in TexData->UniqueID
int RefCount; // Number of contexts using this atlas
3719
3699
3720
3700
// [Obsolete]
3721
-
//int TexDesiredWidth; // OBSOLETED in 1.91.5 (force texture width before calling Build(). Must be a power-of-two. If have many glyphs your graphics API have texture size restrictions you may want to increase texture width to decrease height)
3701
+
//int TexDesiredWidth; // OBSOLETED in 1.92.X (force texture width before calling Build(). Must be a power-of-two. If have many glyphs your graphics API have texture size restrictions you may want to increase texture width to decrease height)
3702
+
//typedef ImTextureRect ImFontAtlasCustomRect; // OBSOLETED in 1.92.X
3722
3703
//typedef ImFontAtlasCustomRect CustomRect; // OBSOLETED in 1.72+
3723
3704
//typedef ImFontGlyphRangesBuilder GlyphRangesBuilder; // OBSOLETED in 1.67+
// - ImFontAtlasCustomRect::GlyphColored --> if you need to write to this, instead you can write to 'font->Glyphs.back()->Colored' after calling AddCustomRectFontGlyph()
4114
+
// We could make ImTextureRect an union to use old names, such 1) this would be confusing 2) the fix is easy 3) ImFontAtlasCustomRect was always a rather esoteric api.
4115
+
typedef ImTextureRect ImFontAtlasCustomRect;
4116
+
/*struct ImFontAtlasCustomRect
4117
+
{
4118
+
unsigned short X, Y; // Output // Packed position in Atlas
0 commit comments