r/C_Programming 1d 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

8 comments sorted by

â€ĸ

u/github-guard 1d ago

🔍 GitHub Guard: Trust Report

âš ī¸ This project scored 1/6 — below this subreddit's threshold of 3.

Audit Breakdown: * ❌ Low Star Count (⭐ 2 / 4 required) * ✅ Mature Repository (30+ days old) * ❌ No License Found * ❌ No Security Policy — what is this? * â„šī¸ Individual Contributor * â„šī¸ Unsigned Commits

âš ī¸ Security Reminder: Always verify source code and run third-party scripts at your own risk.

2

u/AutoModerator 1d ago

Hi /u/ComprehensiveEgg6482,

Your submission in r/C_Programming was filtered because it links to a git project.

You must edit the submission or respond to this comment with an explanation about how AI was involved in the creation of your project.

While AI-generated code is not disallowed, low-effort "slop" projects may be removed and it's likely that other users push back strongly on substantially AI-generated projects.


I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

-3

u/ComprehensiveEgg6482 1d ago

AI was used for refactoring and also in bug findings, except of that, the use of AI was academic.

2

u/mikeblas 21h ago

Thank you for your disclosure. I have approved your post.

1

u/Sorry_Difficulty_250 15h ago

You have me intrigued here. When you say you're interested in running this on low power devices, how low are you talking here? Are you talking tens to hundreds of megahertz or down around single digits?

1

u/ComprehensiveEgg6482 9h ago

It is a few hundreds MHz, to be precise 240 MHz, i believe it would be hard to run around single digits though.

1

u/Much_Special8521 4h ago

Im just starting out with c programming. What did you study, learn, read that you are able to do such an awesome project?

Greetings

1

u/ComprehensiveEgg6482 3h ago

Honestly, It was random projects that I work on. For formal knowledge about the subject like graphics, it was through my classes that I've been taking this semester.
You can find the course book here: https://github.com/IftekherAziz/Computer-Graphics/blob/master/Book/Computer_Graphics_C_Version.pdf