sdl2 examples
1.0.0
"hello world" for SDL2 for various programming languages.
Each sample creates a window, displays an image, then waits two seconds and quits.
All executables should ideally build and run on Linux, macOS, Windows, BSD* and more, but they should at least work on Linux. Most subdirectories contains README.md
files with more details, and a Makefile
to have one way of building each sample.
For newer versions of macOS, the programs also appear to need an event loop for the window to show up, so I'm in the process of adding that to each example. The window just isn't shown if there is no event loop.
go get github.com/veandco/go-sdl2/sdl
)tcc
is used for compiling one of the C examples, make sure to add -DSDL_DISABLE_IMMINTRIN_H=1
.ada
branch if you wish to give it a spin. Please create a PR if it works on Arch Linux and/or the Linux CI test passes!).c3
branch with "Hello World" in C3).Pull requests are welcome.