mirror of
https://github.com/ocornut/imgui.git
synced 2026-04-02 05:27:40 -05:00
(Breaking) added ImTextureRef struct. Changed ImDrawCmd::TextureId to TexRef.
Softly breaking. May require support from language binding generator. Rebased and reworked completely on 2025/03/19.
This commit is contained in:
@@ -1778,7 +1778,7 @@ static void DemoWindowWidgetsImages()
|
||||
// - Consider using the lower-level ImDrawList::AddImage() API, via ImGui::GetWindowDrawList()->AddImage().
|
||||
// - Read https://github.com/ocornut/imgui/blob/master/docs/FAQ.md
|
||||
// - Read https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples
|
||||
ImTextureID my_tex_id = io.Fonts->TexID;
|
||||
ImTextureRef my_tex_id = io.Fonts->TexID;
|
||||
float my_tex_w = (float)io.Fonts->TexWidth;
|
||||
float my_tex_h = (float)io.Fonts->TexHeight;
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user