Create separate renderer and framebuffer modules

This commit is contained in:
2025-10-18 17:43:22 +01:00
parent 72d73c2889
commit d975f5ed42
6 changed files with 212 additions and 128 deletions

View File

@@ -4,5 +4,8 @@ cc="gcc"
warn="-std=c23 -pedantic -Wall -Wextra"
opt="-O2 -march=native"
libs="-I/usr/include/libdrm -ldrm"
defs="-D_POSIX_C_SOURCE=200809L"
$cc $flags $libs main.c -o asteroids
$cc $flags $libs $defs \
-o asteroids \
fb.c main.c renderer.c