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

OpenGL imgui slider ranges

I have a 960x540 window I'm creating using OpenGL. Rendering one texture here and using imgui to implement a slider that let's me translate the x, y, and z positions at runtime. int window_width = 960; int window_height = 540; window =…
greg
  • 1,118
  • 1
  • 20
  • 40
2
votes
1 answer

OpenGL Texture cause ImGUI windows to be permanently out of focus

I'm following TheCherno's tutorials on OpenGL (I've gone ahead and modified a few things though). I'm on MacOS mojave and have OpenGL 2.1. However, when I got to the ImGui part of the tutorial, things started behaving weirdly. Since I have an older…
Rotartsi
  • 527
  • 5
  • 19
1
vote
1 answer

ImGui::SetNextWindowSizeConstraints() not behaving as intended

I'm trying to give my window a minimum size using ImGui::SetNextWindowSizeConstraints and putting it before the Begin() block as documented, like so: void Widget::draw() { ImGui::SetNextWindowSizeConstraints(ImVec2(500, 500), ImVec2(-1,-1)); …
Ruo
  • 77
  • 7
1
vote
0 answers

How to render a framebuffer to an ImGui image in OpenTK using ImGui.NET?

I am working on a project using OpenTK and ImGui.NET, and I'm trying to render a framebuffer to an ImGui image. my current code: ` protected override void OnLoad() { base.OnLoad(); FBO = GL.GenFramebuffer(); …
LL302
  • 39
  • 1
  • 2
1
vote
0 answers

Font loading after Build() call

Can anyone tell me how fonts are loaded in Imgui? I mean: downloading at least 10 fonts at a time: no problem, everything works. ImGuiIO* ImGuiIO_p = &ImGui::GetIO(); (*ImGuiIO_p).Fonts->AddFontDefault(); …
Lua_beg
  • 31
  • 6
1
vote
0 answers

Position vector into global world position vector using a camera

I am programming a 2d rendering engine with opengl, imgui and c++. The problem is to turn my mouse position into global world position using a camera. This is my current code inside my GetGlobalCoordinate function inside my camera controller. //…
a coder
  • 11
  • 1
1
vote
0 answers

Can we change size of an image or imageButton on hover in ImGUI?

I wanted to do this in my project, so I first tried to implement this in the imgui examples project. I'm implementing in glfw_opengl2.cpp file bool btn1 = ImGui::ImageButton((void*)(intptr_t)my_image_texture, { 40.0f,40.0f…
1
vote
1 answer

How can I integrate cimgui with GLFW and Vulkan into a zig project?

I'm trying to use GLFW with Vulkan and cimgui. GLFW and Vulkan and being included and linked fine (there were no issues before I included cimgui). I include all of the C into my project like so: const c = @cImport({ // C Imgui …
NaniNoni
  • 155
  • 11
1
vote
0 answers

How to convert cv::mat to ImTextureID in ImGUI

I have a render app. And it's the basis source code std::vector frame_buffer; I have rendered in the opencv pipeline.refresh(); pipeline.draw(); cv::Mat image(700, 700, CV_32FC3, pipeline.raster.frameBuffer().data()); …
1
vote
0 answers

Force redraw for DearImgui (cimgui-go)

I am using DearImgui bindings for golang (cimgui-go) to draw a window. In one of the sub-windows, I am rendering a texture that is updated from a camera stream, acquired as individual images using OpenCV (gocv.io). The goroutine that acquires the…
jrichner
  • 699
  • 1
  • 5
  • 9
1
vote
1 answer

Render triangle and ImGui window at same time?

Having this simple code: #include #include #include #include #include #include void ImguiOnUpdate(int width, int…
milanHrabos
  • 2,010
  • 3
  • 11
  • 45
1
vote
0 answers

Strange behavior with texture rendering when switching from Intel to nVidia graphic card

I'm developing a little image visualizer just to learn some openGL graphics. I'm using Dear ImGUI to have a GUI interface. I'm struggling with an issue happening when I switch from Intel graphic card to nVidia graphic card. I'm working on a Dell…
1
vote
1 answer

Handle OS window resizing when using Dear ImGui (DX11 backend)

I am trying to make a simple ImGui Win32 app with Visual C++. I noticed a problem, that when I try to resize my host window, the ImGui window gets stretched and the Widgets (also other stuff like lines) are deformed. An example: I am drawing a line…
1
vote
1 answer

Unity3D: Multiple utility/DisplayModelUtility windows

So I am creating an editor tool, this tool is open by clicking in a custom MenuItem. This tool is open as a utility window using the GetWindow(true, "title") and ShowModalUtility() methods. This new utility window has button that will open…
Agustin0987
  • 581
  • 6
  • 15
1
vote
0 answers

How do I specify the bar colors in ImPlot::DrawBarGroups?

I'm struggling to understand how the colors work in ImPlot. Here, I'm plotting bars in groups of 3. static const char* labels[] = {"X", "Y", "Z"}; if (ImPlot::BeginPlot("Sensor activity")) { ImPlot::PlotBarGroups(labels, &(barData[0]), 3,…
Rocketmagnet
  • 5,656
  • 8
  • 36
  • 47