ImGUI image load helpers #900
Unanswered
KingRikkie
asked this question in
Q&A
Replies: 2 comments 1 reply
-
I don't think our OOTB ImGui controller supports this. We'd welcome contributions in adding something similar to GetOrCreateImGuiBinding for our controller. Hope this helps. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Ok so I figured it out myself, modify Texture.cs and make the private imgTex = new Texture("myTex.png");
imgTex.Bind(TextureUnit.Texture0); And finally in OnRender: ImGuiNET.ImGui.Image(new IntPtr(imgTex._handle), new Vector2(300, 300)); Don't really understand why ppl recommended a full custom controller instead. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am struggling to find any example on how to load an image from file with Silk.NET. Using Veldrid this is as simple as:
Beta Was this translation helpful? Give feedback.
All reactions