microui
gunslinger
Our great sponsors
microui | gunslinger | |
---|---|---|
13 | 10 | |
3,079 | 1,145 | |
- | - | |
0.0 | 7.5 | |
3 months ago | 14 days ago | |
C | C | |
MIT License | BSD 3-clause "New" or "Revised" License |
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.
microui
-
Immediate Mode GUI Programming
There is also microui, which I like[0].
Which I forked to work with SDL2[1], no guarantees. It's fun to hack on.
-
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".
- A lightweight, simple, fast, feature-filled, text editor written in C, and Lua
-
Nuklear – A single-header ANSI C immediate mode cross-platform GUI library
The price for the 'lightest' UI toolkit probably goes to microui:
https://github.com/rxi/microui
Just around 1100 lines of C code.
You need to bring your own renderer, but that's the same for Nuklear or Dear ImGui.
I wrote a WASM wrapper for the microui demo too:
-
I made a shortlist of good libraries for my GUI C project and I want your thoughts and comments.
Good C library list: https://en.cppreference.com/w/c/links/libs https://github.com/Immediate-Mode-UI/Nuklear + C89, no dependencies, public license. 5/5 https://www.tecgraf.puc-rio.br/iup/ + good tutorial and wiki guides 5/5 https://libsdl.org/ + infinite possibilities - whole library for making games, forums, wiki - complicated, not many C tutorials, need to manage game states... 4/5 https://github.com/lvgl/lvgl + good docs - for embedded systems 4/5 https://github.com/ocornut/imgui + Popular, inspired Nuklear - for C++ 3/5 https://docs.enlightenment.org/api/imlib2/html/ + very efficient, used in Conky - uses X so only for Linux, just for displaying images and text and stuff 2/5 https://github.com/rxi/microui + simple, small - you need to handle your own drawing 2/5 GTK+ - no
- Best way to write a cross-platform graphical program in C while using only bare minimum third-party libraries?
- resources for making a gui library
-
Seeking your expert opinion and advice for an OpenGL client-server rendering framework
What about GUI like this: https://github.com/rxi/microui?
-
Easy to implement GUI for SDL 2
If you are using SDL with SDL_Renderer, try microui
-
What is your own favorite C project?
In terms of other people's projects: stb, microui, and nanovg come to mind
gunslinger
-
game development with c
Here's a framework that's cool: https://github.com/MrFrenik/gunslinger/. We have a great Discord community, too. Even if you don't end up using it, there are plenty of people who are willing to offer guidance regardless :). Invite link is on the author's YouTube channel: https://www.youtube.com/watch?v=-_HxKDNuCqA
- Do you have any C game frameworks, or should I just learn C++?
-
Magnum: Lightweight, modular C++11 graphics middleware for games/visualization
Check out gunslinger, a pure C99 game framework, with a very clean design.
The development has been making huge strides and they have a fairly active discord channel:
-
Looking for a game engine programmable in C
Make your own. If you really want to make a game in C, this may be the best option. Depending on how complex the game is that you want to make, this could be an enormous task, or not too big of a deal, in some cases it could even be easier than learning a game engine. You can use frameworks like Gunslinger to make it easier, as well. If you need guidance, the Gunslinger community is friendly and accepting of beginners :).
-
What is your own favorite C project?
Some of my favorites are: sokol/pacman.c, Gunslinger, and gb
-
Bash and Powershell remote scripts to install header-only C and C++ libraries from github repo.
To install non exotic library from a github repo, specify just the repo-owner/repo-name or the absolute github link to the repo. E.g. to install gunslinger and stb from master branch
-
A Header Only OpenGL Framework Written In C
Looking quickly at this lib, functions of the API are not static: https://github.com/MrFrenik/gunslinger/blob/d5ebcce0647e97badc9337749d7cd9f5810eecfa/gs.h#L1415, so it might lead to ODR violation.
What are some alternatives?
imgui - Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies
sokol - minimal cross-platform standalone C headers
nanovg - Antialiased 2D vector drawing library on top of OpenGL for UI and visualizations.
pixeltoaster - PixelToaster is a framebuffer library for C++
raylib - A simple and easy-to-use library to enjoy videogames programming
minifb - MiniFB is a small cross platform library to create a frame buffer that you can draw pixels in
nuklear
stb - stb single-file public domain libraries for C/C++
rotate - [WIP] static typed programming language that compiles to vm bytecode
pns