lame 🙊 rendering pipeline - a scratch built 3D rendering pipeline using only c++ and Simple DirectMedia Layer (SDL).
First install the SDL library to provide low level access to the keyboard, mouse, and display.
sudo apt update
sudo apt install libsdl2-dev
Then compile and run the code.
git clone [email protected]:jonlee48/larp.git
cd larp
make
./larp
-[ ] Makefile - o files and linker -[ ] Makefile - does not detect changes to h files
To check for memory leaks, run with Valgrind suppression file because SDL has leaks in the library.
valgrind --gen-suppressions=all --suppressions=./linux_sdl_gl.sup --leak-check=full --show-leak-kinds=all ./larp
- https://stackoverflow.com/questions/1997171/why-does-valgrind-say-basic-sdl-program-is-leaking-memory
- https://stackoverflow.com/questions/5134891/how-do-i-use-valgrind-to-find-memory-leaks
- Simple DirectMedia Layer (SDL Wiki)
- SDL Dynamic API
- SDL Tutorials
- X11 forwarding on WSL2
- Syncing HW Clock on WSL2
- Makefile Tutorial