imgui
cimgui
Our great sponsors
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
imgui
-
Are there any cross-platform GUI libraries out there?
If you have no aversions to using hardware acceleration and don't mind if the UI isn't native, you could use Dear ImGui. It makes creating a GUI easy and allows you to develop your application rapidly. It also has back-ends for all of the platforms that you mentioned.
cimgui
-
Beside SDL, is there an easier way to just show a custom rectangle with text, cross-platform?
I would recommend C bindings for the Dear ImGui (https://github.com/cimgui/cimgui)
-
ImGui or text rendering libraries
For GUI, there are lots, most well-known of course being Dear Imgui, for which people have made auto-generated C bindings. Another mature but a lot simpler option is Nuklear, as others have mentioned. Even more minimalistic (it's just 1KLOC) is microui. There are a lot more, just google "imgui library c".
- Steps to setup cimgui on windows 10.
-
Nuklear – A single-header ANSI C immediate mode cross-platform GUI library
DearIMGUI has both an unofficial C wrapper and a new official C binding generator. I have personally used the CIMGUI wrapper with C99 apps using the Direct3D11 backend and it works great. The new API is started by the DearIMGUI creator but is still adding features that are available in CIMGUI.
Unofficial C API - https://github.com/cimgui/cimgui
-
Create a Window in C/Where to Begin
I would give ImGui a look, it is technically a c++ api, but there is a plain c version https://github.com/cimgui/cimgui/tree/docking_inter which is a free cross platform gui toolset
-
Imgui Zig bindings(based on ZGui)
Whilst this is great. I have a (slightly dumb) question -What advantage does using these bindings give us over just using the generated C IMGUI bindings (cimgui) directly in Zig??Especially given the fact that that the latter are autogenerated from the original C++ IMGUI.
-
What ImGUI library would work well with programs written in C?
cimgui
-
Ideas for fast UI that can be easily rendered using OpenGL
This is worth a look: https://github.com/cimgui/cimgui
-
Are there any cross-platform GUI libraries out there?
Dear ImGui is a C++ library, however a C port exists.
-
Should I switch to python after learning the basics of C?
Explore GUI frameworks for C Here's another and another
What are some alternatives?
SDL_gui - GUI library for SDL2
Zig-ImGui - Zig bindings for ocornut/imgui, generated using cimgui/cimgui
imgui - Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies
zig-upaya - Zig-based framework for creating game tools and helper apps
lvgl - Embedded graphics library to create beautiful UIs for any MCU, MPU and display type.
imgui-sfml - Dear ImGui backend for use with SFML
nuklear - A single-header ANSI C immediate mode cross-platform GUI library
raylib - A simple and easy-to-use library to enjoy videogames programming
nuklear-quickdraw - quickdraw backend for nuklear (https://github.com/Immediate-Mode-UI/Nuklear)
miniaudio - Audio playback and capture library written in C, in a single source file.
scratch - Personal scratch code