olive.c

Oct 20, 2023

https://github.com/tsoding/olive.c

Simple graphics library that does not have any dependencies and renders everything into the given memory pixel by pixel. Visit https://tsoding.org/olive.c/ to see some demos.

Here's an example that renders a rotating triangle and a rotating circle, with a comment that helps explain the motivation:

// This example renders a rotating triangle.
// This idea is that you can take this code and compile it to different platforms with different rendering machanisms:
// native with SDL, WebAssembly with HTML5 canvas, etc.
↑ up