Category : imgui

I have read an example of imgui rendering text:https://github.com/ocornut/imgui/blob/master/imgui_draw.cpp (on line 2367) The example of imgui is too complicated, maybe because imgui needs to consider too many issues. Hope to get a short example: how to use stbtt_* functions to render text. The examples I can find so far are to convert text into bitmap ..

Read more

I’m trying to add it into a glfw window but its giving me this error this is the line dropping the error ImGui_ImplOpenGL3_Init(GL_renderer); this is my imgui folder this is main.cpp (there are no other files other than the imgui folder) #include "imgui/imgui.h" #include <GL/glew.h> #include <GLFW/glfw3.h> #include "imgui/imgui_impl_glfw.h" #include "imgui/imgui_impl_opengl3.h" #include <stdio.h> int main() ..

Read more

I’ve just added imgui(opengl3-glfw) to my project, where I also use glfw. I have already bound input callbacks to my application, but imgui has also got input callbacks. Every time I produce input in the application, I get an: "Unhandled exception at 0x00007FF716E4044E in app.exe: 0xC00000FD: Stack overflow (parameters: 0x0000000000000001," error for imgui‘s callback function.Example ..

Read more

I’m currently trying to integrate ImGui Into My Project. My issue arises when I try to display a vector using ImGui: ImGui::Text("Collider: "); for (size_t i = 0; i < m_Vertices.size(); i++) { if (ImGui::InputFloat2("", *m_Vertices[i].GetValuePointer())) SetVertex(m_Vertices[i], i); } (The GetValuePointer() method returns a a float** that represents the given Vector2) When I iterate over ..

Read more

This is the block of code { static float f = 0.0f; static int counter = 0; ImGui::Begin("Hello, welcome to Life Simulator!"); if (ImGui::Button("Dealership")) ImGui::OpenPopup("Dealership"); // Always center this window when appearing ImVec2 center = ImGui::GetMainViewport()->GetCenter(); ImGui::SetNextWindowPos(center, ImGuiCond_Appearing, ImVec2(0.5f, 0.5f)); if (ImGui::BeginPopupModal("Dealership", NULL, ImGuiWindowFlags_AlwaysAutoResize)) { ImGui::Text("Welcome to Rob’s Dealership"); ImGui::Separator(); ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(0, 0)); ImGui::Text("These are ..

Read more

I have to add a progress bar into my application using imgui but I can’t figure out how it does work, this is its signature: void ImGui::ProgressBar(float fraction, const ImVec2& size_arg, const char* overlay) so fraction is used to set the current progress. overlay used to set a title for example but I can’t understand ..

Read more