mirror of
https://github.com/ocornut/imgui.git
synced 2026-05-27 19:15:24 +08:00
Docs: update 1.92.0 changelogs to cover more internal fields. (#8764)
This commit is contained in:
@@ -196,6 +196,7 @@ Breaking changes:
|
|||||||
While in theory a vast majority of users shouldn't be affected, some use cases or
|
While in theory a vast majority of users shouldn't be affected, some use cases or
|
||||||
extensions might be. Among other things:
|
extensions might be. Among other things:
|
||||||
- ImDrawCmd::TextureId has been changed to ImDrawCmd::TexRef.
|
- ImDrawCmd::TextureId has been changed to ImDrawCmd::TexRef.
|
||||||
|
- ImFontAtlas::TexID has been changed to ImFontAtlas::TexRef.
|
||||||
- ImFontAtlas::ConfigData[] has been renamed to ImFontAtlas::Sources[].
|
- ImFontAtlas::ConfigData[] has been renamed to ImFontAtlas::Sources[].
|
||||||
- ImFont::ConfigData[], ConfigDataCount has been renamed to Sources[], SourceCount.
|
- ImFont::ConfigData[], ConfigDataCount has been renamed to Sources[], SourceCount.
|
||||||
- Each ImFont has a number of ImFontBaked instances corresponding to actively used
|
- Each ImFont has a number of ImFontBaked instances corresponding to actively used
|
||||||
@@ -213,6 +214,11 @@ Breaking changes:
|
|||||||
g.Font == ImGui::GetFont()
|
g.Font == ImGui::GetFont()
|
||||||
g.FontSize == ImGui::GetFontSize()
|
g.FontSize == ImGui::GetFontSize()
|
||||||
g.FontBaked == ImGui::GetFontBaked() == ImGui::GetFont()->GetFontBaked(ImGui::GetFontSize())
|
g.FontBaked == ImGui::GetFontBaked() == ImGui::GetFont()->GetFontBaked(ImGui::GetFontSize())
|
||||||
|
- Fields moved from ImFontAtlas to ImTextureData
|
||||||
|
- ImFontAtlas->TexWidth -> ImFontAtlas->TexData->Width
|
||||||
|
- ImFontAtlas->TexHeight -> ImFontAtlas->TexData->Height
|
||||||
|
- ImFontAtlas->TexPixelsAlpha8 -> ImFontAtlas->TexData->GetPixels() (when ImFontAtlas::TexDesiredFormat == ImTextureFormat_Alpha8)
|
||||||
|
- ImFontAtlas->TexPixelsRGBA32 -> ImFontAtlas->TexData->GetPixels() (when ImFontAtlas::TexDesiredFormat == ImTextureFormat_RGBA32)
|
||||||
Please report if you are affected!
|
Please report if you are affected!
|
||||||
- Fonts: (users of imgui_freetype)
|
- Fonts: (users of imgui_freetype)
|
||||||
- renamed ImFontAtlas::FontBuilderFlags to ImFontAtlas::FontLoaderFlags.
|
- renamed ImFontAtlas::FontBuilderFlags to ImFontAtlas::FontLoaderFlags.
|
||||||
|
|||||||
@@ -445,10 +445,12 @@ IMPLEMENTING SUPPORT for ImGuiBackendFlags_RendererHasTextures:
|
|||||||
- Fonts: obsoleted ImFont::Scale which is not useful anymore.
|
- Fonts: obsoleted ImFont::Scale which is not useful anymore.
|
||||||
- Fonts: generally reworked Internals of ImFontAtlas and ImFont. While in theory a vast majority of users shouldn't be affected, some use cases or extensions might be. Among other things:
|
- Fonts: generally reworked Internals of ImFontAtlas and ImFont. While in theory a vast majority of users shouldn't be affected, some use cases or extensions might be. Among other things:
|
||||||
- ImDrawCmd::TextureId has been changed to ImDrawCmd::TexRef.
|
- ImDrawCmd::TextureId has been changed to ImDrawCmd::TexRef.
|
||||||
|
- ImFontAtlas::TexID has been changed to ImFontAtlas::TexRef.
|
||||||
- ImFontAtlas::ConfigData[] has been renamed to ImFontAtlas::Sources[]
|
- ImFontAtlas::ConfigData[] has been renamed to ImFontAtlas::Sources[]
|
||||||
- ImFont::ConfigData[], ConfigDataCount has been renamed to Sources[], SourceCount.
|
- ImFont::ConfigData[], ConfigDataCount has been renamed to Sources[], SourceCount.
|
||||||
- Each ImFont has a number of ImFontBaked instances corresponding to actively used sizes. ImFont::GetFontBaked(size) retrieves the one for a given size.
|
- Each ImFont has a number of ImFontBaked instances corresponding to actively used sizes. ImFont::GetFontBaked(size) retrieves the one for a given size.
|
||||||
- Fields moved from ImFont to ImFontBaked: IndexAdvanceX[], Glyphs[], Ascent, Descent, FindGlyph(), FindGlyphNoFallback(), GetCharAdvance().
|
- Fields moved from ImFont to ImFontBaked: IndexAdvanceX[], Glyphs[], Ascent, Descent, FindGlyph(), FindGlyphNoFallback(), GetCharAdvance().
|
||||||
|
- Fields moved from ImFontAtlas to ImFontAtlas->Tex: ImFontAtlas::TexWidth => TexData->Width, ImFontAtlas::TexHeight => TexData->Height, ImFontAtlas::TexPixelsAlpha8/TexPixelsRGBA32 => TexData->GetPixels().
|
||||||
- Widget code may use ImGui::GetFontBaked() instead of ImGui::GetFont() to access font data for current font at current font size (and you may use font->GetFontBaked(size) to access it for any other size.)
|
- Widget code may use ImGui::GetFontBaked() instead of ImGui::GetFont() to access font data for current font at current font size (and you may use font->GetFontBaked(size) to access it for any other size.)
|
||||||
- Fonts: (users of imgui_freetype): renamed ImFontAtlas::FontBuilderFlags to ImFontAtlas::FontLoaderFlags. Renamed ImFontConfig::FontBuilderFlags to ImFontConfig::FontLoaderFlags. Renamed ImGuiFreeTypeBuilderFlags to ImGuiFreeTypeLoaderFlags.
|
- Fonts: (users of imgui_freetype): renamed ImFontAtlas::FontBuilderFlags to ImFontAtlas::FontLoaderFlags. Renamed ImFontConfig::FontBuilderFlags to ImFontConfig::FontLoaderFlags. Renamed ImGuiFreeTypeBuilderFlags to ImGuiFreeTypeLoaderFlags.
|
||||||
If you used runtime imgui_freetype selection rather than the default IMGUI_ENABLE_FREETYPE compile-time option: Renamed/reworked ImFontBuilderIO into ImFontLoader. Renamed ImGuiFreeType::GetBuilderForFreeType() to ImGuiFreeType::GetFontLoader().
|
If you used runtime imgui_freetype selection rather than the default IMGUI_ENABLE_FREETYPE compile-time option: Renamed/reworked ImFontBuilderIO into ImFontLoader. Renamed ImGuiFreeType::GetBuilderForFreeType() to ImGuiFreeType::GetFontLoader().
|
||||||
|
|||||||
Reference in New Issue
Block a user