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

ImGui Vulkan Validation Layer Error when undocking

When using ImGui for Vulkan with imgui_impl_vulkan.cpp, imgui_impl_glfw.cpp and their respective headers I get no validation layers errors, but when I am using the docking branch and undock or in other words when I detach the ImGui window from the…
Felipe Gutierrez
  • 675
  • 6
  • 17
3
votes
3 answers

GLFW & ImGui: Creating ImGui controls from thread other than main

I am using GLFW and ImGui for a project that involves opening multiple windows. So far I have set this up so that each time a new window must be opened I spawn a thread that creates its own GLFW window and OpenGL context. The thread function looks…
Romen
  • 1,617
  • 10
  • 26
3
votes
3 answers

How do I limit my Frames Per Second in a GLFW window? (Using Dear ImGui)

Currently, my Dear ImGui application (mainly the demo window with some custom OpenGL rendering) runs around 2000 fps if my window is small enough. How can I limit this to the monitor refresh rate (or even just 60fps)? My current code looks like…
iHowell
  • 2,263
  • 1
  • 25
  • 49
3
votes
1 answer

ImGui with the glad openGL loader throws segmentation fault (core dumped)

I am new to the ImGui library and recently i've been trying out the examples included. Everything worked like a charm until I changed the include (and functions) of gl3w to glad (the loader i would like to use). The moment I swapped between the two…
Manu
  • 209
  • 1
  • 3
  • 13
2
votes
1 answer

Differences between using ImGui::Begin and SDL_CreateWindow

My learning/test app uses SDL2 + ImGui, so all window management is done by SDL2. So what's the difference between: ImGui::SetNextWindowSize({640, 480}, 0); ImGui::Begin("MyWindow", &_mywnd, ImGuiWindowFlags_None); ImGui::End(); v.s. …
2
votes
0 answers

How do I make a dockable window fill up the remaining dockspace programatically?

I have a simple application with 2 dockable windows in a dockspace. One is sidebar and the other is the content. I am using the docking branch of imgui How do I make the content window fill up the remaining dockspace programmatically? Kind of like…
Live Dojo
  • 41
  • 4
2
votes
0 answers

Remove the parent default window in ImGui

I used one of the examples from ImGui source code (D3d11), I want to remove the ugly default host window that has the title "Dear ImGui DirectX11 Example" (image attached) and only use my own created window (the red one). From the code I can see…
refrain
  • 51
  • 7
2
votes
0 answers

how to use imgui+glfw+opengl with vcpkg+clion+cmake on win11

I use vcpkg manifest to isntall packages, vcpkg.json: { "name": "vcpkgtest", "version": "1.0.0", "description": "learn vkpg & glfw & imgui & cmake", "dependencies": [ "glfw3", { "name": "imgui", "features":…
Zihan Zhao
  • 21
  • 2
2
votes
0 answers

How to use ggez + imgui + wgpu?

In my game I need to render some in-game textures into UI (I'm using ggez 0.8.1 and imgui 0.8.0). As ggez 0.8.1 uses wgpu for rendering I need to use wgpu backend for imgui. So there's my question: how can I render imgui's DrawData inside ggez's…
mertwole
  • 49
  • 4
2
votes
1 answer

How to set a static window size ImGui?

I am new to ImGui, and trying to set the max and min window size. I am using the example dx10 ImGui code. I understand that this line will set the width and hight of the window at the start to be 600*800: HWND hwnd =…
Micheal Nestor
  • 91
  • 1
  • 10
2
votes
1 answer

GLFW multiple windows multiple threads OpenGL and Vulkan mix

Qustion about GLFW I have a program that has windows in OpenGL and one window with Vulkan. When creating the Vulkan window I set glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API); when I create OpenGL glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR,…
mWindows
  • 63
  • 4
2
votes
1 answer

How to warp/wrap the cursor when it leaves the window to the opposite side ImGui GLFW

I have some ImGui DragFloats that are close to the right edge of the window, so if you try to drag the float to the right you hit the edge of your screen soon. Is there a way to replicate something similar like in Unity (when you are dragging…
JacobDev
  • 65
  • 6
2
votes
1 answer

ImGui OpenGL Game Engine

Hello I'm creating my first Game Engine with C++ and OpenGL, along with ImGui for the editor interface. I have a simple question, I created a window that covers the whole screen using: ImGuiWindowFlags flags = ImGuiWindowFlags_NoResize |…
cooldev
  • 41
  • 4
2
votes
0 answers

How to use wrap of DearImGui with Meson

I'm trying to build a c++ project with Imgui with the SDL2 backend, and maybe Vulkan. But it errors when trying to build: 'PFN_D3D12_SERIALIZE_ROOT_SIGNATURE' was not declared in this scope Setup MyProject |-- bin |-- subprojects |-- meson.build #…
Erithax
  • 21
  • 3
2
votes
0 answers

How to append at the top/start in ImGuiTextBuffer instead of bottom/end

I'm using an ImGuiTextBuffer in ImGui to store a text buffer for my program logs. To append text, I'm using this method: bot_log.appendf((text + "\n").c_str()); This is more or less how it looks in my GUI: So my idea is to see in reverse…
kuhi
  • 531
  • 5
  • 23
1
2
3
17 18