Questions tagged [imgui]

imgui stands for "Immediate mode GUI", which is a GUI where the event processing is directly controlled by the user.

Related links:

Implementations:

264 questions
1
vote
0 answers

OpenGL GLFW not correctly recognising window resize

I have some graph that I need to resize concurrently when the window is also resized, however as of now, it changes the axis size's perfectly when resizing but when I let go of the resize (stop clicking on the corner of a window) the application's…
1
vote
0 answers

Multi-View ports glitch? imgui-java

My problem is when I try to enable multi-view port support it doesn't work. I added ViewportsEnable to my configFlags: io.addConfigFlags(ImGuiConfigFlags.ViewportsEnable); and I call these two…
ImmanuelC
  • 43
  • 6
1
vote
1 answer

Calling std::thread() around a function works differently

Is there any reason why this code here: int main(int argc, char* argv[]) { Main::Init(); std::thread worker(Main::Mainloop); worker.join(); Main::Free(); return 0; } should work differently to this code here: int main(int…
user11383585
1
vote
1 answer

How can I modify a variable captured by a Rust closure?

I'm trying to make a GUI for a Rust application, and what looked like it would work well for me is imgui-rs. All I want to be able to do is get some input values from the user, and output a changing png. I had some trouble getting the boilerplate…
Calvin Godfrey
  • 2,171
  • 1
  • 11
  • 27
1
vote
1 answer

OpenGL renderer with ImGui and SDL2

I'm trying to use all 3 libraries or whatnot but i'm quite confused by the sample code and I can't quite follow the documentation. This is the code and ill explain my confusions below: #include #include #include…
user11383585
1
vote
1 answer

How to relate to button created in SFML-IMGUI?

Hello I want to create some buttons with SFML-IMGUI and after that relate to them in some way for example to change text. How can I do this? I dont see any ID attribute. I create button using this code. ImGui::Begin("Button"); Button("Click…
antonim
  • 57
  • 1
  • 5
1
vote
0 answers

Global variables in a GUI?

I am designing an immediate gui using C++ and SDL2. As I was starting to design my framework, I noticed that basically everything needs a renderer or some sort of event or other relevant information (Fonts, Themes, etc.). Does it make sense to put…
Stra
  • 31
  • 6
1
vote
1 answer

Can't install ImGui in a GLFW project in Visual Studio (C++)

I have a GLFW project in Visual Studio and I want to add ImGui to it. I followed a tutorial to install it and I simply picked up some file and added to the project but it gives me a lot of error (+200). The main error is: #error "Cannot detect…
1
vote
1 answer

How to sample a pixel from a framebuffer texture in OpenGL?

I am creating a color picker OpenGL application for images with ImGUI. I have managed to load an image by loading the image into a glTexImage2D and using ImGUI::Image(). Now I would like to implement a method, which can determine the color of the…
Fox1942
  • 276
  • 2
  • 18
1
vote
2 answers

How to correctly Install ImGui?

I am very new to c++ but i know a couple other languages (ie. python, java, a little C). The problem is when i compile my code and try to open a new ImGui window it gives a "undefined reference" error. I think it is a problem with how i the setup…
Cooper Keely
  • 11
  • 1
  • 1
  • 3
1
vote
1 answer

Dear IMGUI and DirectX 12 Overlay (DXGI_ERROR_INVALID_CALL)

I'm trying to make a simple frame counter for DirectX 12 games using Dear IMGUI. I simply want to overlay a small transparent window that displays the sequential order of frames during gameplay. To do so, I hook Present(), so I can get the…
junfanbl
  • 451
  • 3
  • 21
1
vote
0 answers

How can I build a good abstraction for a nested tree view ui component using ImGui?

I would like to create a nested tree view ui component using ImGui. The result would look like this: This is the code needed in order to create the nesting of Selectable() elements like so: void imgui_nested_tree() { bool is_expanded =…
mbl
  • 805
  • 11
  • 18
1
vote
1 answer

Get Reference to Field from Reflection

I'm working on an OpenGL game engine as a passion project and im using the UI library "Dear ImGUI" to display and debug values similar to Unity's inspector. I'm having trouble thinking of a way to get a reference to the field I'm trying to debug.…
Beckam White
  • 143
  • 10
1
vote
2 answers

Visual Studio trying to open source file that is no longer in project (fatal error C1083)

The problem is quite simple, really. I had imgui included in my project and I'm no longer using it. However, VS still tries to open them every time I try to compile. I removed all includes and deleted the files from my project completely. There is…
Julk
  • 169
  • 7
1
vote
1 answer

Why do the fields of the last pushed back object into a vector transfer to the other objects of the vector?

I am a little bit stuck with my code and I am not being able to find out the problem. I hope you can help me. I have 4 Classes: - class BasicModul: it has, among others, one field called modulName. - class DrawingSettings: not relevant at this…
JBG
  • 63
  • 1
  • 5