mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 13:37:42 -05:00
build: Update ImGui to v1.92.1 (#2325)
Update ImGui to the latest version and rewrite most of the font handling code
This commit is contained in:
@@ -867,7 +867,14 @@ void Demo_Images() {
|
||||
ImGui::SliderFloat2("UV1", &uv1.x, -2, 2, "%.1f");
|
||||
ImGui::ColorEdit4("Tint",&tint.x);
|
||||
if (ImPlot::BeginPlot("##image")) {
|
||||
ImPlot::PlotImage("my image",ImGui::GetIO().Fonts->TexID, bmin, bmax, uv0, uv1, tint);
|
||||
#ifdef IMGUI_HAS_TEXTURES
|
||||
// We use the font atlas ImTextureRef for this demo, but in your real code when you submit
|
||||
// an image that you have loaded yourself, you would normally have a ImTextureID which works
|
||||
// just as well (as ImTextureRef can be constructed from ImTextureID).
|
||||
ImPlot::PlotImage("my image", ImGui::GetIO().Fonts->TexRef, bmin, bmax, uv0, uv1, tint);
|
||||
#else
|
||||
ImPlot::PlotImage("my image", ImGui::GetIO().Fonts->TexID, bmin, bmax, uv0, uv1, tint);
|
||||
#endif
|
||||
ImPlot::EndPlot();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user