olive.c
deadfrog-lib
Our great sponsors
olive.c | deadfrog-lib | |
---|---|---|
12 | 2 | |
1,730 | 12 | |
1.2% | - | |
4.2 | 8.2 | |
11 months ago | about 1 month ago | |
C | C++ | |
MIT License | 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.
olive.c
-
2D graphics lib recommendation?
Olive.c
-
Image in C
another option is to have a specific program that does this conversion, e.g https://github.com/tsoding/olive.c/blob/master/tools/png2c.c
-
Minimal Cross-Platform Graphics
Perfect companion for this C graphics library: https://github.com/tsoding/olive.c
-
Math Functions with -nostdlib
This might help: https://github.com/tsoding/olive.c/blob/master/js/vc.js
-
Looking for a very basic 2d graphics library
If you want a minimal library : https://github.com/tsoding/olive.c
-
Hacker News top posts: Sep 22, 2022
Olive.c: a simple graphics library that does not have any dependencies\ (70 comments)
-
Olive.c: a simple graphics library that does not have any dependencies
Hey the link to https://tsoding.org/olive.c/ is down.
deadfrog-lib
-
Minimal Cross-Platform Graphics
I think the Xlib dependency would prevent compilation as an αpε. I put some effort into doing X11 from scratch (without Xlib or Xcb) to make this possible. Or at least, my aim was to be able to build with musl libc and generate a single executable that would run on many different Linuxes.
https://github.com/abainbridge/deadfrog-lib/blob/master/src/.... It is janky though.
-
EndBASIC
Having a bitmap in normal system memory that we can write to the window or screen is easy though and should be more widely supported. Once you've got that you can write pixels, lines, rectangles, mandlebrots etc very easily and building up to a GUI toolkit is also quite easy and fun. This mechanism is fast enough for pretty much everything other than games on modern hardware.
I consider GPU acceleration a form of premature optimization - it adds complexity unnecessarily in many cases.
Here's my library for doing that on Windows and X11. https://github.com/abainbridge/deadfrog-lib
What are some alternatives?
SuperSimpleGraphics - An SVG generating single header file C library appropriate for "intro to programming" classes in C/C++.
minifb - MiniFB is a small cross platform library to create a frame buffer that you can draw pixels in
abrash-black-book - Markdown source for Michael Abrash's Graphics Programming Black Book
zigzag
ComputerGraphics - Basic computer graphics implementation , with linux framebuffer
tigr - TIGR - the TIny GRaphics library for Windows, macOS, Linux, iOS and Android.
hello-wayland - A hello world Wayland client (mirror)
pixie - Pixie - a minimal, cross-platform pixel framebuffer library for Windows and macOS.
dietlibc - Inofficial git-cvs clone of :pserver:[email protected]:/cvs + some changes
glibc - GNU Libc
glcv - Simple OpenGL canvas/event handling library