This is a subset of the software graphics engine that powers my from-scratch game King's Crook. It also has code for creating a software rendering context under Win32 and macOS/Linux.
https://github.com/LMP88959/PL3D-KC
Just like King's Crook, this code follows the same restrictions:
1. Everything must be done in software, no explicit usage of hardware acceleration.
2. No floating point types or literals, everything must be integer only.
3. No 3rd party libraries, only C standard library and OS libraries for window, input, etc.
4. No languages used besides C.
5. No compiler specific features and no SIMD.
6. Single threaded.
Discord server for King's Crook:
/ discord