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

Are there any basic immediate mode gui tutorials?

I am trying to find any basic tutorial which could show me how could I do immediate mode gui. I know it is a really hard thing to make own gui. I have already tried to make retained gui (it ends up being very basic). I have been looking for any im…
Shout
  • 338
  • 5
  • 14
10
votes
6 answers

How to center align text horizontally?

I am creating a text in ImGui. It automatically aligns right, how do I make just that one text align in the center? ImGui::Text("Example Text"); I don't believe there is a function to do this. I know you can do it for a box or widget, but how would…
lt123
  • 117
  • 1
  • 2
  • 8
10
votes
1 answer

How do I reference a system library used by an external dependency if copts doesn't allow system paths?

For Bazel, I'm pulling in an external library from within my WORKSPACE: new_http_archive( name = "imgui", build_file = "deps/BUILD.imgui", sha256 = "c457fdc19b4e3aa74deccf6a2d9bc51f0d470b3acd9cc095bf04df16459d6474", …
Trevor Hickey
  • 36,288
  • 32
  • 162
  • 271
9
votes
1 answer

How can I change text color of my InputText in ImGui?

I am looking to figure out how I can change the color of the text displayed on the "Name" print, but I am pretty much clueless on how to do so. I would like to make it green, help or tips are appreciated :D // Name …
Suarez
  • 93
  • 1
  • 1
  • 4
8
votes
1 answer

How can i link GLFW and Dear ImGUI in CMAKE

the last few days i was messing with CMake, and everything worked fine, except that i can't find a way to link ImGUI with GLFW Everything is build from source Here is the error : Consolidate compiler generated dependencies of target glad [ 2%]…
Erik Tellier
  • 200
  • 1
  • 1
  • 13
8
votes
3 answers

How to right align text in ImGui Columns?

Suppose I create a table with the following: ImGui::Columns(3); ImGui::Text("Header 1"); ImGui::NextColumn(); ImGui::Text("Header 2"); ImGui::NextColumn(); ImGui::Text("Header…
iHowell
  • 2,263
  • 1
  • 25
  • 49
5
votes
2 answers

Remove Title Bar in ImGui

I would like to know that how do I remove the title bar from an ImGui Window. I am using C++ with GLFW for this.
real_dev04
  • 145
  • 2
  • 8
4
votes
1 answer

Using std::string in ImGui::InputText(...)

The call to ImGui::InputText() takes a char array which I need to initialise from a std::string and then transfer the contents back to the std::string. In it's simplest form: char buf[255]{}; std::string s{"foo"}; void fn() { strncpy( buf,…
user16823789
4
votes
2 answers

How do you open a file explorer dialogue in C++?

I'm developing a desktop application with ImGui in C++, and I need the user to be able to search for a file on their machine with a file explorer. It was extremely easy to do with Python tkinter, but how am I able to do this with C++?
snakelovah18119
  • 121
  • 1
  • 7
4
votes
1 answer

How to create ImGui window and render to it at any time you want?

I don't know much about ImGui, and it's also poorly documented.I'd like to know if there is a way to create an ImGui window, and then render to it anytime you want. I only know this way of creating a…
Uytab
  • 85
  • 1
  • 7
3
votes
2 answers

Black square renders instead of an OpenCV image

I'm trying to render two images of size 256x256 with ushort data type. One must be in greyscale and another in RGB. However, both render as black squares. I believe that the fault lies somewhere in my openGL texture definition, but I'm not…
Lilmothiit
  • 33
  • 3
3
votes
1 answer

Imgui text appears as white rectangles on my custom Vulkan renderer

I am following Sascha Willems example on how to integrate imgui with a Vulkan renderer. Trying to render this simple window: ImGui::NewFrame(); ImGui::SetNextWindowSize(ImVec2(128, 64), ImGuiCond_FirstUseEver); ImGui::Begin("Test…
Elad Maimoni
  • 3,703
  • 3
  • 20
  • 37
3
votes
1 answer

Installing Dear ImGui with vcpkg on Windows 10

I installed Dear ImGui on Windows 10 with this command: vcpkg install imgui:x64-windows which installs only: imgui[core]:x64-windows -> 1.85 I suspect that I need to add one or more bindings from this list: imgui[allegro5-binding] …
Paul Jurczak
  • 7,008
  • 3
  • 47
  • 72
3
votes
1 answer

The data rendered of imgui within window get a lighter color

The data rendered outside the window get a correct color The data rendered within the window get a lighter color As the images described, does anyone know what caused the problem?
qsxw
  • 91
  • 6
3
votes
1 answer

Purpose of python yield when not used in iterator

I've inherited some fairly buggy code from another project. One of the functions is a callback(draw_ui method) from a library that has a yield statement in it. I'm wondering what the purpose of having a yield in python is if your not using it in a…
1
2 3
17 18