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

ImGUI Popup not showing up but executing the code

I am making a program using ImGui and I want to display a PopUp if the input on one window is bad after clicking the button "OK". It enter the IF statement and execute the code but the popup doesnt show up. ImGui::OpenPopup("Error Creating…
0
votes
0 answers

C++ Syntax in ImGui: Three dots

I found the following code in a cpp files of the ImGui library. What does this signature mean in C++ please: void ImGui::Text(const char* fmt, ...); Is this a type of parameter pack which looks different: template void op(Args...…
Vero
  • 313
  • 2
  • 9
0
votes
0 answers

I'm getting header file doesn't exist error upon compiling (c++)

I'm making a simple opengl app that renders a triangle and gui from ImGui. I am using windows 10 vscode. I followed a beginner's tutorial from https://www.youtube.com/playlist?list=PLPaoO-vpZnumdcb4tZc4x5Q-v7CkrQ6M- and after getting program to…
0
votes
1 answer

Failing under Correct VS Setup: Cannot open include file: 'imgui.h'

I beleive I am setting up my VS Config correctly but I still get errors when including a file as follows: The imgui file is under: The error is: Could you please help me?
Vero
  • 313
  • 2
  • 9
0
votes
0 answers

Standard design pattern for calling methods from various UI windows?

BACKGROUD: So I am creating an application with ImGui and as it stands I have created several files that describe the functionality of each window and then include those cpp files headers to my app main.cpp, I then call a displaywindowXX function…
MacLCM
  • 57
  • 9
0
votes
0 answers

How the drag and drop system works with Xlib in C++?

I am developing an application in C++ with the gui frameworks ImGUI. My ImGUI backend is GLFW. I need to create a drag end drop system (between my app and others) for my app but for what I've been reading, GLFW only support drop events from external…
Romain
  • 133
  • 9
0
votes
1 answer

OpenGL Error with glTexImage2D and NVIDIA

I keep having a random error trying to print some image with OpengGL via ImGui library (GLFW as back-end). Here is what gdb give me so far : #0 0x00000000400b0ef1 in ?? () #1 0x00007ffec1b80fb0 in ?? () #2 0x00007ffeda7f5780 in ?? () #3 …
Romain
  • 133
  • 9
0
votes
0 answers

Creating a logger console ImGui

I would like to make a console logger in my ImGui implementation , I got inspired by the one in the demo and made the background invisible, it's a bit ghetto but very practical. I have created it as a static namespace, but this means that I cannot…
Bam Bou
  • 95
  • 1
  • 7
0
votes
1 answer

imgui is not rendering with a D3D9 Hook

ok so basically I am trying to inject a DLL into a game for an external menu for debugging and my hook works completely fine, i can render a normal square fine to the screen but when i try to render imgui, some games DirectX just dies and some…
bruh_wym
  • 27
  • 5
0
votes
1 answer

How can i fix this displayer image error in ImGui?

I have started to make a program with ImGui and opengl, besides stb for the images. When I show the default image of the demo it appears correctly. While if I load one using stb and link it with opengl and then display it, it looks like this. I do…
0
votes
0 answers

Dependency issues linking ImGui, SDL2 to project using CMake

Im having trouble changing my project from Sfml to SDL2+opengl3 rendering. The error im getting with my current CMake setup is ImGui not linking to a subfolder of mine in which i create a SHARED library: UserInterface. Now i have tried declaring…
bonkt
  • 15
  • 1
  • 9
0
votes
0 answers

OpenGL loading 2D Texture from byte array renders black rectangle in ImGUI window

I am trying to load a 2D Texture from an (currently) hardcoded byte array using OpenGL and display it in an ImGui window. I was using DirectX before and loaded the texture using D3DXCreateTextureFromFileInMemoryEx which worked completely fine.…
0
votes
0 answers

How can I synchronize two threads, one for functions and one for directx, and run ImGui functions in one of them?

I am trying to extend the functionality of a program, adding an analytics menu made with ImGUI. The program has two threads: the main thread where all the program logic is executed, and the drawing thread, where all the DirectX logic resides. Both…
secdef
  • 13
  • 1
  • 4
0
votes
0 answers

Compiler Error c2398 narrowing conversion

So I have seen this quest a few times and I have tried wrapping it with static_cast(WIDTH) and static_cast(HEIGHT) however it just produces the same error and I am not too sure why it seem to me int to float shouldnt even need a narrowing…
0
votes
1 answer

How do I change the border size for a table in Dear ImGui?

How do I change the border size for a table in Dear ImGui? By default, in Dear ImGui, the thickness of the table borders is 1 pixel (this can be seen if you draw the table). I want to change this value. How can this be done? And is it possible at…