scratch
cimgui
Our great sponsors
scratch | cimgui | |
---|---|---|
51 | 14 | |
333 | 1,343 | |
- | 3.5% | |
9.0 | 7.0 | |
2 days ago | 10 days ago | |
C | Lua | |
The Unlicense | MIT 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.
scratch
- Windows XP dedicated image viewer?
-
What Happens Before the Main Function is Called ?
pbmview, an image viewer (windows subsystem).
-
A couple freestanding parsers in C99
For comparison (for those following along): https://github.com/skeeto/scratch/blob/master/parsers/qoi.c https://github.com/skeeto/scratch/blob/master/parsers/ini.c
- (POSIX) theory and practice of the useless use of cat
- [2023-05-19] Challenge #400 [Intermediate] Practical Numbers
-
Difference in accuracy when compiling in windows and linux
Another option I learned a couple years ago is embedding a UTF-8 manifest ([details])[https://github.com/skeeto/scratch/tree/master/libwinsane]. Also put the console in UTF-8 mode (SetConsoleOutputCP(CP_UTF8)), and you're done. Works on Windows 10 and later. This covers everything: argv is UTF-8 and fopen accepts UTF-8 paths. (This is exactly how CRTs should have worked all along.)
-
I made this small program in C :)
I was thinking more about this and I realized it's quite easy to do it in arbitrary precision, so here's my take: https://github.com/skeeto/scratch/blob/master/misc/bswap.c
-
Beside SDL, is there an easier way to just show a custom rectangle with text, cross-platform?
As was linked from my QOI article, here's my full decoder with comments: qoi.c. Each pixel decodes to a 32-bit integer, ABGR. That corresponds to SDL's SDL_PIXELFORMAT_ABGR8888. SDL_UpdateTexture copies that data into the texture's internal storage, and font is no longer needed. (In a real program I'd allocate it in a scratch arena, reset after initialization.)
-
GitHub - pmkenned/pmk_string: A simple string library in C
A recent, interesting experience with function+context allocation: For more than a decade, Windows accidentally exposed part of zlib in a public DLL, and (overly-)clever applications can exploit this as a "system zlib." Though it doesn't export the "end" functions, so cleanup seems impossible. However, custom allocation works, so doesn't matter. I plugged it into an arena.
- decompressing a .deflate file?
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?
w64devkit - Portable C and C++ Development Kit for x64 (and x86) Windows
Zig-ImGui - Zig bindings for ocornut/imgui, generated using cimgui/cimgui
busybox-w32 - WIN32 native port of BusyBox.
imgui - Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies
BUSY - BUSY is a lean, statically typed, cross-platform, easily bootstrappable build system for GCC, CLANG and MSVC inspired by Google GN
zig-upaya - Zig-based framework for creating game tools and helper apps
PSCalendar - :calendar: A set of PowerShell commands for displaying calendars in the console.
lvgl - Embedded graphics library to create beautiful UIs for any MCU, MPU and display type.
gameinfojs - High level interface to the functionality provided by the other game* libraries
imgui-sfml - Dear ImGui backend for use with SFML
PL3D-KC - A very fast and simple software renderer using only integers and fixed point math. PiSHi LE (PL) is a subset of the 3D software graphics library used in King's Crook.
nuklear - A single-header ANSI C immediate mode cross-platform GUI library