310 questions
Advice
0
votes
1
replies
32
views
How to have a hover Sound in Dear ImGui
How do I add:
menuSound.loadSound("hover_sound", "Audio/Sound/button_hover_sound1.wav", 0.5f);
sound effect to all button in ImGui, so that when the mouse hover over them it will ...
2
votes
1
answer
133
views
DearImGUI's SDLRenderer2 backend draws text as blocks?
This DearImGUI program that uses the SDLRenderer2 backend:
#include <SDL_main.h>
#include <SDL.h>
#include <iostream>
#include <imgui.h>
#include <imgui_impl_sdl2.h>
#...
0
votes
1
answer
136
views
C++ / GLFW / ImGui crash in DLL: Assertion bd->PrevWndProc != nullptr
I’m working on a custom C++ engine using GLFW and GLAD with OpenGL. My engine is compiled as a DLL and used in an editor/game executable. So far, everything works fine: I can create a window and ...
0
votes
1
answer
218
views
Imgui can not find SDL3/SDL.h file
I am trying to learn imgui by first create a project using its library. But, first I wanted to run one of the examples found in the github repository. I am not using an IDE, only my mac terminal. ...
7
votes
2
answers
36k
views
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::...
0
votes
0
answers
89
views
Using Python imgui_bundle test engine to test my app
Python 3.12
imgui_bundle 1.91.7 WIP
[UPDATE for more information]
- the app I have made is run as: python -m app.gui
- app uses hello_imgui if that matters
- but to start, I'm just trying to ...
10
votes
1
answer
39k
views
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 ...
1
vote
0
answers
375
views
How do I properly draw an ImPlots plot into a imgui-node-editor node?
I'm working on a project that uses nodes and plots. I chose to use ImGui alongside ImPlots and imgui-node-editor.
https://github.com/ocornut/imgui (Docking branch)
https://github.com/epezent/implot
...
0
votes
0
answers
184
views
Menu appears behind window in some cases, not in others
I'm working on a C++ application that uses Dear Imgui for the UI. This app has Multi-Viewports enabled and uses Imgui docking features. The main application window has a menu bar initialized with ...
0
votes
0
answers
93
views
Why is my image not shown while I'm dragging background window to resize it in imgui?
I'm developing a desktop program based on imgui docking branch on ubuntu 22.04 to add an image into background window and center it always while the window is being resized:
(Also note, get arbitrary ...
1
vote
0
answers
309
views
How to use vulkan with imgui?
I want to ues vulkan with imgui, but encounter some problems. The details are as follows.
Use glfw.
I create renderpass with two subpass to render 3d object and imGui. The result is that I only get 3d ...
2
votes
0
answers
574
views
How to hide the label on the right side of the ImGui::SliderInt(...)
enum ImGuiSliderFlags_
{
ImGuiSliderFlags_None = 0,
ImGuiSliderFlags_Logarithmic = 1 << 5, // Make the widget logarithmic (linear otherwise). Consider using ...
1
vote
2
answers
625
views
Why does Dear ImGui Tables inserts extra ID into the id path of child widgets?
// ID conflict. Expected behaviour.
static float value1;
static float value2;
ImGui::DragFloat("##drag-float", &value1); // .../##drag-float
ImGui::DragFloat("##drag-float", &...
1
vote
3
answers
29k
views
How to correctly Install ImGui?
I am very new to c++ but i know a couple other languages (ie. python, java, a little C). The problem is when i compile my code and try to open a new ImGui window it gives a "undefined reference&...
2
votes
0
answers
319
views
Strange rendering issues with manual DrawList modification in ImGUI
I'm attempting to create a simple node canvas system using ImGUI.NET loosely based on https://github.com/thedmd/imgui-node-editor/blob/master/imgui_canvas.cpp. I believe that this question is still ...
3
votes
0
answers
655
views
Change default Dear ImGui widget width
The Dear ImGui default widget width (combo, inputtext, etc.) is too wide for my liking. I'd like to change the default width of these widgets once at application start-up, or maybe every time in the ...
2
votes
0
answers
413
views
ImGui custom shader using vulkan
Im making gui in imgui, using example from official repository(example_glfw_vulkan), and i encountered a problem, that i cant apply shader to my popup`s background.
expected result
in this image you ...
5
votes
1
answer
377
views
How do I get mouse coordinates relative to my sf::View?
I'm using displaying a sf::RenderTexture in an ImGui::Image and I'm trying to get the mouse coordinates relative to it.
Here is my code:
if (ImGui::Begin("Viewport", nullptr, GetFlags()))...
1
vote
1
answer
2k
views
How to destroy ImGui::Begin window
How I can destroy imgui window by clicking X
void test::OnUIRender()
{
bool state;
ImGui::Begin("test_test", &state);
if (ImGui::Button("test"))
{
...
1
vote
1
answer
235
views
ImGui + SDL2 - SIGILL error on ImGui initialization
I'm writing a simple emulator for the NES. I'm trying to use SDL2 for the graphics, with ImGui (SDL renderer, not necessarily limited to it).
It all worked with the corresponding example on github, ...
5
votes
2
answers
2k
views
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(&...
3
votes
1
answer
1k
views
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 ...
0
votes
2
answers
254
views
ImGui::Text is not showing the string of my ImVector<Pin>
I'm trying to print in the screen the name of a Pin, but it's showing strange characters:
The pin with the strange characters
My class is like this:
struct Pin
{
int ID;
char Name[32];
...
1
vote
1
answer
46
views
Swift Package Manager on Linux: dependency not recognised?
I am trying to use Swift for the 1st time on Linux and intend to create a small executable with SwiftImGui.
Here is my Package.swift:
// swift-tools-version: 5.10
// The swift-tools-version declares ...
-1
votes
2
answers
7k
views
Undefined reference to ImGui::InputText()?
On https://github.com/ocornut/imgui it says:
No specific build process is required. You can add the .cpp files to your existing project.
I tried this using Code Blocks with the relevant .cpp files, ...