All Projects → pplux → imgui-app

pplux / imgui-app

Licence: MIT license
Dear IMGUI + Render + Window handling, amalgamation in two files ready to use

Programming Languages

C++
36643 projects - #6 most used programming language
c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to imgui-app

surface splatting
OpenGL demo of a point rendering and texture filtering technique called Surface Splatting.
Stars: ✭ 125 (+26.26%)
Mutual labels:  imgui
BezierCurves2D
An implementation of 2D Bezier Curves in C++ using OpenGL, gl3w, glfw3 and imgui.
Stars: ✭ 41 (-58.59%)
Mutual labels:  imgui
imgui
Dear ImGui Addons Branch = plain unmodified dear imgui plus some extra addon.
Stars: ✭ 348 (+251.52%)
Mutual labels:  imgui
HalfPayne
No description or website provided.
Stars: ✭ 33 (-66.67%)
Mutual labels:  imgui
imgui-flame-graph
A Dear ImGui Widget for displaying Flame Graphs.
Stars: ✭ 93 (-6.06%)
Mutual labels:  imgui
Swift-imgui
Dear ImGui Swift Wrapper API for macOS and iOS
Stars: ✭ 59 (-40.4%)
Mutual labels:  imgui
ImGui Widgets
my imgui widgets/skin including custom UI on openFrameworks
Stars: ✭ 24 (-75.76%)
Mutual labels:  imgui
bgfx-python
Python 3.7+ wrapper for the BGFX library. 🐍
Stars: ✭ 99 (+0%)
Mutual labels:  imgui
tnt
A 2d Game Engine written in C++20.
Stars: ✭ 30 (-69.7%)
Mutual labels:  imgui
rbfx
Game engine with (optional) C# support and WYSIWYG editor.
Stars: ✭ 511 (+416.16%)
Mutual labels:  imgui
uimgui
UImGui (Unity ImGui) is an UPM package for the immediate mode GUI library using ImGui.NET. This project is based on RG.ImGui project.
Stars: ✭ 143 (+44.44%)
Mutual labels:  imgui
GLGame
A Tiny 2D OpenGL based C++ Game Engine that is fast, lightweight and comes with a level editor.
Stars: ✭ 49 (-50.51%)
Mutual labels:  imgui
imgui-java
JNI based binding for Dear ImGui
Stars: ✭ 270 (+172.73%)
Mutual labels:  imgui
nuklear4j
Java binding for nuklear
Stars: ✭ 61 (-38.38%)
Mutual labels:  imgui
nes-rust
NES emulator in Rust with GUI
Stars: ✭ 78 (-21.21%)
Mutual labels:  imgui
lua-amalg
Amalgamation of Lua modules/scripts
Stars: ✭ 95 (-4.04%)
Mutual labels:  amalgamation
CSMoE
NO MORE OFFLINE UPDATES
Stars: ✭ 150 (+51.52%)
Mutual labels:  imgui
lldbg
A lightweight native GUI for LLDB.
Stars: ✭ 83 (-16.16%)
Mutual labels:  imgui
rotation master
Provide conversion between the major representations of 3D rotation and visualize the orientation of a rigid body
Stars: ✭ 157 (+58.59%)
Mutual labels:  imgui
ruby-imgui
Yet another ImGui wrapper for Ruby
Stars: ✭ 42 (-57.58%)
Mutual labels:  imgui

imgui-app

Imgui-app is an amalgamation of two amazing projects Dear Imgui and Sokol libraries into two files to make it very easy to start working with imgui. It might be useful when you need to do some UI quickly for a project but do not want to care that much how to get imgui up and running (imgui compilation, backend rendering, window handling, ...).

test.png

Howto

To start using imgui-app you need to add these two files to your project:

Once you are ready to display the UI, just call imgui_app, see the example.

#include "imgui.h"

void frame() {
    ImGui::Text("Hello, world %d", 123);
    ImGui::ShowDemoWindow();
}

int main(int, char **) {
    // when ready, call the UI:
    imgui_app(frame, "IMGUI_APP", 800, 600);
    // execution continues when window is closed
    return 0;
}

Finally, make sure to select the proper sokol render backend, by compiling your project with -DSOKOL_GLCORE33 or any of the available backends.

Optional files:

This files are not required to use imgui-app, but if you need access to more advanced components from imgui or sokol here they are:

  • imgui_internal.h. Might be needed if you need access to advanced rendering, or you us a 3rd party widget that requires it.
  • sokol.h, amalgamation of sokol_app and sokol_time. You might require this if you want to initialize the window manually and provide callbacks for sokol events (input, drag and drop, etc...).

Notes:

  • Try not to modify the files imgui.h, imgui_app.cpp, or imgui_internal.h they are generated from the original sources by the Makefile of this project
  • We chose to use imgui.h for the headers to make the project compatible with other exisiting imgui code.
  • imgui_app.cpp is BIG, it is the result of including in one file imgui, sokol, and all the dependencies. Try not to compile every time on your project :)
  • The amalgamation idea comes from Sqlite amalgamation
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].