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
1 answer

How to refresh GUI frame while heavy simulation is running in the rendering loop?

I am trying to create an app, where the user can run a (time-consuming) backend physics simulation with the press of a button. But at the same time, I would like the rest of the GUI to remain functional and not to "freeze" until the simulation is…
1
vote
1 answer

Drag and Drop Item list not working properly on ImGUI

Im using ImGUI and I want to implement a layer menu for the images and to move them im using Drag to reorder items in a vector. Sometimes it works just fine but others the images just jumps from the current position to a random one. for (int i = 0;…
1
vote
1 answer

Non uniform pixel painting in low Frame rate

I am making an image editing program and when making the brush tool I have encountered a problem. The problem is when the frame rate is very low, since the program reads the mouse at that moment and paints the pixel below it. What solution could I…
1
vote
1 answer

In ImGUI, is it possible to change the icon at the left of a collapsing header?

I created a date picker using a collapsing header, and I'd like to change the arrow to the left if possible. Is there a concise way to do this? Or do I have to like, remake the whole collapsing header item from scratch?
BBonless
  • 97
  • 7
1
vote
1 answer

Implicit vector conversion in ImGui (ImVec <--> glm::vec)

I am trying to get the implicit conversion between ImGui's (ImVec) and glm's (glm::vec) vector types working. In here I read, that I have to change the following lines in the imconfig.h file: #define IM_VEC2_CLASS_EXTRA …
noergel1
  • 35
  • 5
1
vote
1 answer

Is there a way to embed a web browser inside of an ImGui Window?

Question: Hello, I am looking for a way to embed a web browser inside of an ImGui Window, kind of like a button or text control. Is there a library, hacky workaround or something of that sort, that I could use without switching to a different UI…
aberst
  • 47
  • 5
1
vote
1 answer

C++ file cannot find library linked with CMake

I wanted to use DearImGui therefore I needed to either copy ImGui into the project or use a package manager, so I chose the latter. I'm currently using Conan as a my package manager, the file looks like this:…
1
vote
0 answers

How to destroy ImGui::Begin window

How I can destroy imgui window by clicking X void test::OnUIRender() { bool state; ImGui::Begin("test_test", &state); if (ImGui::Button("test")) { ImGui::DestroyContext(); } ImGui::End(); } screenshot
Msen
  • 11
  • 2
1
vote
1 answer

How to add link to imGui button?

I want to create an ImGui button, when I click on this button, I want it to redirect to a url, that is, to the browser, how can I do that? can you help me please?
Blows
  • 11
  • 1
1
vote
1 answer

ImGui ERROR related with ImGui_ImplOpenGL3_CreateDeviceObjects

When I run my code I'm getting this Error. Consider that I'm getting this Error (Runtime Error) from ImGui only when threading is Enabled. ERROR: ImGui_ImplOpenGL3_CreateDeviceObjects: failed to compile vertex shader! With GLSL: #version 130 ERROR:…
real_dev04
  • 145
  • 2
  • 8
1
vote
2 answers

How to create a vertical group of buttons in ImGui?

I have this ImGui menu: I want to move the "Del" button to the red selected area in the previous image. This is that part of the menu snippet: class Waypoint { public: int x, y, z; std::string action; std::string display; …
kuhi
  • 531
  • 5
  • 23
1
vote
1 answer

How to use vector with ImGui::ListBox?

I'm trying to display a vector of objects in a listbox that will be rendered dynamically in every frame. This is my class and I want to display every attribute later in the listbox: class Waypoint { public: int x, y, z; char action; }; What…
kuhi
  • 531
  • 5
  • 23
1
vote
1 answer

Custom key binds

I am working on an ImGui project, and am trying to find a way to create custom key binds. I thought of just listing every single VK key code in a massive, if statement, but not only would that be bulky, but I would also not take certain keys such as…
1
vote
1 answer

How can I download ImGUI on Visual Studio Code without operating on a project folder?

I am planning on using ImGUI for a side-project on visual studio code. I have C++ properly installed such that I can run simple programs on a terminal/command prompt. Thus, I have the correct compiler path for the C/C++ configurations. I was…
Leonardo
  • 272
  • 3
  • 16
1
vote
1 answer

ImGui visual glitch

So, I implemented ImGUi with docking in GLFW window and all was perfect while was only the Demo Window. When I put one more, that happened:enter image description here Any idea? I don't know if I should put the code since it's inside a class with…
Gabriel
  • 66
  • 7