mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-10 08:25:54 +01:00
OpenGL texture handle is an unsigned integer rather than a pointer, so should be formatted as one
parent
a5c14cc666
commit
d9e397269a
@ -165,7 +165,7 @@ In the snippet of code above, we added an assert `IM_ASSERT(ret)` to check if th
|
||||
Now that we have an OpenGL texture and its dimensions, we can display it in our main loop:
|
||||
```cpp
|
||||
ImGui::Begin("OpenGL Texture Text");
|
||||
ImGui::Text("pointer = %p", my_image_texture);
|
||||
ImGui::Text("pointer = %x", my_image_texture);
|
||||
ImGui::Text("size = %d x %d", my_image_width, my_image_height);
|
||||
ImGui::Image((void*)(intptr_t)my_image_texture, ImVec2(my_image_width, my_image_height));
|
||||
ImGui::End();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user