Questions tagged [imgui]
Tag questions about using imgui with this tag. Do not use this tag for questions about generic immediate gui programming, as this stuff is specific to the imgui-library.
15 questions
1
vote
0
answers
61
views
How to get UI Panel color to match GUI Window
Attempting to get a UI Panel to match the color and background of a GUI Window. Currently, using the default style for a GUI Window. Attached is a screenshot of the GUI Window. I've tried access the ...
0
votes
0
answers
105
views
Zoom in and out centered about the mouse cursor in 2D using ImGUI
I have a 2D canvas used in a ImGUI context, that requires Zoom and Pan functionality.
Currently the Pan functionality works fine. However the zoom functionality does scale but the result is not ...
0
votes
0
answers
275
views
How to not call the same Dear ImGui function several times per frame
I'm using this Dear ImGui code in a function called several times per frame, resulting in duplications of the called UI element.
...
2
votes
2
answers
1k
views
Centering Image inside ImGui window causes bug
I've tried drawing RenderTexture directly to the ImGui window and I've stumbled upon a bug. Everything is drawn correctly until I center ImGui Image inside the ImGui window.
Centered Image:
Not ...
0
votes
1
answer
1k
views
How to implement drawing only to the specific area of the window?
I'm trying to implement "canvas" where I will display loaded texture and select specific parts of it so I can put them on tilemap, I'm also trying to add zooming and panning only in "...
0
votes
1
answer
1k
views
How can I add word wrap to EditorGUILayout.TextArea?
How can I add word wrap to the editor textarea? I'm trying to mimic the [TextArea] attribute (word wrap, automatically increase height when needed)
For some reason GUILayout.TextArea() works fine, but ...
2
votes
0
answers
503
views
How to effectively/properly use IntPtr in ImGui.NET
How should I go about using methods that take an IntPtr in the .NET Dear ImGui wrapper, ImGui.NET?
For example, ...
2
votes
1
answer
4k
views
How to render in a imGui Window
I am learning OpenGL by glfw3 lib and I am using imgui to make a interesting application.
However, I can not render what I want in a imgui window.
I searched google and get below link:
Render in a ...
1
vote
0
answers
552
views
ImGui, how to get value that the mouse is pointing at in a VSliderFloat widget
I am using ImGui::VSliderFloat to create a vertical slider in the GUI of my application. To do this I just copied the imgui demo code (imgui_demo.cpp), which reads something like
...
1
vote
0
answers
2k
views
Multiple Viewports/Windows Dear IMGUI c++
How do I use IMGUI with multiple GLFW windows? I know Dear IMGUI already has a virtual viewport system going in the viewport branch but I found that to be lacking a bit on how to use this new system.
...
0
votes
0
answers
2k
views
Why ImGui not rendering image correctly in my game ui
[Scene:]
I am working on a game project.In a part of my project,I have to do following things.
1.Read a image
2.Detect face(I am using opencv)
3.view in my imgui window using ImGUi::image()
I ...
1
vote
0
answers
229
views
Render imgui on top of existing Java framework
I have never done this before, but we need to build game editor, on top of our existing java game SDK.
We want to use java version of imgui. I can easily create imgui window and put UI into it, but ...
1
vote
1
answer
1k
views
Modifying GLFW callbacks
I'm currently using Imgui for the GUI part of my OpenGL/C++ engine with the GLFW binding. The problem is though that this binding has encapsulated the input callbacks in a global .cpp file which makes ...
15
votes
2
answers
22k
views
Render in a imGui Window
How do i render my game scene into an imgui window?
I want to get from this:
to this :
9
votes
2
answers
31k
views
How can I render an OpenGL scene into an ImGui window?
The picture rapresents what i want to achieve.
I read, somewhere on the Internet, that you can render the fbo and pass that fbo as a texture to render into the ImGui window. The problem is that I don'...