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

How to fix memory access violation with OpenGL glViewport?

I am trying to build an application in C++ with ImGUI, OpenGL and GLFW. However, when i try to run my program, i get a white screen that then crashes and gives me an error code of -1073741819. Here is my Class for creating a window, alot of the…
-2
votes
1 answer

imgui Cannot have an empty ID at the root of a window. If you need an empty label, use ## and read the FAQ about how the ID Stack works

When i try to initialize imgui element without label, like so: ui.slider("", 10, 40, &mut input_font_size) i get following error Assertion failed: (id != window->ID && "Cannot have an empty ID at the root of a window. If you need an empty label,…
nojitsi
  • 351
  • 3
  • 13
-2
votes
1 answer

Sample application with imgui library generate error

I am new in imgui and just installed it with vcpkg and created an application in vs2022 and add these codes: #include using namespace std; void MySaveFunction() { } int main() { ImGui::Text("Hello, world %d", 123); if…
mans
  • 17,104
  • 45
  • 172
  • 321
-2
votes
1 answer

Depth Testing isn't working when rendering into an FBO

I am trying to render a 3d pyramid inside a frame buffer to display it in ImGui window. But the depth testing fails and I get this: Here's what I have: glEnable(GL_DEPTH_TEST); while (!glfwWindowShouldClose(mainwin)) { glClearColor(0.5f, 0.5f,…
-2
votes
1 answer

C++ Same include line in 2 files in the same folder: one works, another can't find the file

Windows 10 Eclipse IDE for C/C++ Developers Version: Kepler Service Release 2 Build id: 20140224-0627 I'm trying to use imgui. Unfortunately, documentation is pretty shady about how to get it working. So, in order to get it working, I think I need…
Ilya
  • 992
  • 7
  • 14
-2
votes
2 answers

Show longer String with ImGui

I'm using ImGui, the implementation for OpenGL worked fine but now I have a problem with rendering some Text. For some reason, whenever I try to render a string with ImGui::Text(someString.c_str()); ImGui renders only the first 19 characters. If I…
-2
votes
1 answer

Defining global class/struct pointer between two .cpp files

I have a problem declaring a public/extern struct object between different .cpp files. I am trying to use the imgui logger to log some messages from a hook. The program is going to crash on ExampleAppLog my_log2; -> ImGuiTextBuffer Buf; -> class…
-3
votes
2 answers

If checkbox is checked, output text in Console Application C++

How can I output some text if checkbox is checked without having unlimited outputs? I'm using C++ ImGui for my project. So when checkbox in ImGui menu is checked, it should output some text in console. CheckBox: ImGui::Checkbox("mycheckbox",…
luckioo
  • 13
  • 2
1 2 3
17
18