-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
My Image is replaced by Font Image #1840
Comments
Wrong.
|
I tried this before but strangely visual studio 2015 compiler didn't like it.
I tried following which compiles fine but still doesn't fix my issue:
|
Oh!! This is a x64 bit app!!!
I did the following which fixed my issue:
I still don't see why the earlier code didn't work:
|
Your earlier code didn’t work because are passing an address to the GLuint instead of passing the value. Using: (ImTextureID)(intptr_t)m_id Should work without warnings. |
Closing this now, also tried to clarify the FAQ about this. |
I have now written a tutorial to cover image file loading for common graphics API: |
Hi there,
I am using GLFW3 +imgui ( off of master branch ) + imgui_impl_glfw_gl3.h to create GUI in my app.
I load my image in the GPU and pass the textureID to ImGui::Image. After this, I was hoping to see my image but instead I see the font image.
Here is the my code:
And here is what I get:
Could you tell me if this is this a bug in "imgui_impl_glfw_gl3.h"? or am I doing something wrong?
Best Regards,
H
The text was updated successfully, but these errors were encountered: