
▲ 17 r/cprogramming
Made a small 2D graphics library for C
been learning C for a bit and wanted to make something visual. but SDL2 felt too involved for doing sth simple....so i made my own library..its called Cinder. sits on top of SDL2, collapses all the setup into basically nothing:
CinderInit(CINDER_SUBSYSTEM_ALL);
CinderCreateWindow(CinderDefaultWindowDesc());
while (CinderIsRunning()) {
CinderBeginFrame();
CinderClearBackground(CINDER_BLACK);
CinderEndFrame();
}
covers drawing, input, audio, fonts, textures, timers, rng.. the usual stuff. there are examples in the repo (pong, snake, pendulum) if you want to see how it actually feels to use.
feedback welcome
u/Afraid_Lie_9340 — 12 hours ago