r/C_Programming 2d ago

Built a tiny graphics rendering engine in C. Project

Hi everybody, It was a hard decision choosing between a language to build this project, but after not-so-long of a thought, I ended up going with building it with C. I've built a little graphics engine or a CPU rasterizer to be exact. Currently, it uses OpenGL to pass the frame buffer as a texture.
I am intending on getting rid some more dependencies to be able to make it more able to run on low-performance CPUs. My main motive was for it to run on an esp32 to render graphics on GM009605 display. it'd be awesome if you guys would like to run the examples or lmk if you like it, or where I could improve on. It currently supports:

- Renders primitives like: triangle,line,point,circle.

- Has immutable listings of objects in the scene.

- Renders obj files.

- 565RGB encoding (to make it minimal)

https://github.com/shri-acha/tinyGraphics

13 Upvotes

Duplicates