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
1
vote
1 answer

Codepoint mismatch between Java and C

So, I'm having some problems with the following char – in a port of imgui to kotlin After digging the whole day into Charsets and encodings, I came down to my only hope: rely on the unicode codepoints. That char on the jvm "–"[0].toInt() // same as…
elect
  • 6,765
  • 10
  • 53
  • 119
1
vote
1 answer

Dear ImGui window fits background

How to make a Dear ImGui - created window fit exactly the "background" ? I mean when we create a window, it's also inside some rendering scene or background. I want to imitate windows created by other frameworks such as Qt to make it more desktop…
McBear Holden
  • 805
  • 4
  • 14
1
vote
1 answer

Embed font larger than char size in ImGui

Im developing translation on little script that uses ImGui as frontend. I need extended set of unicode characters to be available in font that will be used. Since this script is injecting via DLL there's no way (I think so. I have no experience with…
CacheGhost
  • 159
  • 15
0
votes
0 answers

Integration of Imgui in Java?

Is there any ported Imgui to LWJGL2 (namely version 2) or maybe an example of use on this version? I found several implementations (including imgui-java on github), but they are all exclusively on LWJGL3...
Daniil
  • 1
0
votes
1 answer

Texture is being deleted?

// Sprite. if(ImGui::CollapsingHeader("Sprite.")) { // Preview texture allocations. sf::Texture texture; // ... static char spritePath[MAX_OBJECTS_TEXT_SIZE / 2]; // (512 / 2) // ... if(ImGui::InputText("Sprite…
null
  • 29
  • 2
0
votes
0 answers

How To Create a Table in ImGui and apply rotation to it from Center?

How To Create a Table in ImGui of for example 2*2 matrix .and apply rotation to entire Table From Center to certain rotation angle. is there any method to perform these operations? ImGui::BeginTable(tableId.c_str(), globalColumnCount,…
0
votes
0 answers

Imgui create a new window

Use the following code on the main window to create a new child window But the new window disappears immediately bool show_dialog = true; ImGui::SetNextWindowSize(ImVec2(400, 200)); ImGui::SetNextWindowPos(ImVec2(100, 100)); // Set the position…
termda
  • 1
0
votes
0 answers

How to avoid blinking in an ImGui application using Rust, SDL and OpenGL?

I'm developing an application using the imgui-rs library in Rust with SDL2 and OpenGL. However, I'm experiencing an issue where the UI elements are constantly blinking during the application's execution. I've tried various approaches, but the…
totta
  • 1
  • 3
0
votes
1 answer

How can we setup pkg-config for cimgui to use it with meson to build our project?

My question is primarily two parts: I have tried to install Cimgui from their github page. I first clone the project and its subprojects like imgui as said in their page. Then, after running make and sudo cmake --install . --config Debug, It builds…
demortz
  • 51
  • 7
0
votes
0 answers

Is it possible to make an ImGui window non compressable?

I'm looking for an ImGui window flag that would allow a docked window to display an icon of a fixed size, and the user should not be able to compress the window edges past the borders of the icon. So no matter how small the window is, the icon…
Ruo
  • 77
  • 7
0
votes
1 answer

Compiling imnodes widget generates IMGUI_DEFINE_MATH_OPERATORS error within ImGui Framework

I'm trying to build a node editor into my ImGui tool and found a simple node widget called imnodes however when I compile the code I receive the following error. I'm fairly new to ImGui. #error: Please '#define IMGUI_DEFINE_MATH_OPERATORS' _BEFORE_…
jeremy_b
  • 1
  • 1
0
votes
0 answers

How to reuse ImDrawList for the next frame?

I want to optimize rendering in ImGui. Here's what I'm trying to. // This function is called in my rendering loop. void Backend::render() { static ImDrawList* previousDrawList = nullptr; ImGui::Begin("List Widget"); if (m_dataChanged) { …
WOOSEOK CHOI
  • 165
  • 9
0
votes
0 answers

How can I draw a grid using ImDrawList and AddRectFilled in ImGui?

I'm trying to draw a grid of the dimensions of m_GCodeBuilder.GetBilletSize().x by m_GCodeBuilder.GetBilletSize().y in a new ImGui window right underneath the main menu. My Program class has a Run function with the meat of the program. Here it…
NaniNoni
  • 155
  • 11
0
votes
0 answers

Can't find source for imgui_impl_glfw.h and imgui_impl_opengl3.h

I did a CMake project, using ImGui and GLFW libraries, and everything works fine and run correctly. But when I try to create a new one with the same CMakeLists.txt and same including of headers, there are two E1696 errors: cannot open source file…
su-mrak
  • 1
  • 1
0
votes
0 answers

Switch windows in immediate gui

I have 2 structs that represent different windows. Each have its own implementation where window layout described. How to make window switch on button click? I am using EGui but if you have experience with other ui's, like Dear ImGui, I will also…
Mbroo
  • 29
  • 5