OpenGL texture handle is an unsigned integer rather than a pointer, so should be formatted as one

IAmEki 2024-02-27 21:08:50 +00:00
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();