sdl2-opengl-demo

Cross-platform OpenGL demo using SDL2

MIT License

Stars
8

sdl2-opengl-demo

Cross-platform OpenGL demo using SDL2

Dependencies

SDL2 (zlib) - Simple DirectMedia Layer

Building

This project is built using POSIX-compatible make. For unix-like systems, it can be built natively. For Windows builds, mingw-w64 is used to cross-compile the project from a unix-like system.

Linux (Native, Debian-based)

sudo apt install make libsdl2-dev
make

macOS (Native)

brew install make sdl2
make -f Makefile.macos

Windows (Cross-Compile)

From Linux (Debian-based):

sudo apt install make wget tar mingw-w64
make -f Makefile.mingw

From macOS:

brew install make wget gnu-tar mingw-w64
make -f Makefile.mingw