Small examples of libSDL2 usage in V, C and C++ languages. Historically, the purpose was to evaluate the changes from SDL1 to SDL2.
Note that the V modules wrapping : SDL2, Imgui and Nuklear have been moved to their separate git repo, and are still used/demonstrated here as git sub-modules.
You can find their own repos here:
Colors, Music and Sounds ripped from amiga title Twintris (1990 nostalgia !)
Ubuntu :
$ sudo apt install libsdl2-ttf-dev libsdl2-mixer-dev libssl-dev
And optionally for extra tests :
$ sudo apt install libglfw3-dev libglm-dev libfreetype-dev
Archlinux:
$ sudo pacman -S glew glm
And maybe other similar packages as for Ubuntu above?
ClearLinux : (maybe miss libopenssl dev ?)
$ sudo swupd bundle-add devpkg-SDL2_ttf devpkg-SDL2_mixer
Windows/MSYS2 : (maybe miss libopenssl dev ?)
$ pacman -S mingw-w64-x86_64-SDL2_ttf mingw-w64-x86_64-SDL2_mixer
Eg: on Linux:
sdl2test$ make
Can then run eg: VNK, VIG demo:
sdl2test$ ./mainnk.exe
sdl2test$ ./mainig.exe
Makefile auto-detects available SDL version (2 or 1)
Old notes:
V
48.6%
C++
20.6%
C
18.5%
Rust
9.1%
Makefile
3.0%
Small examples of libSDL2 usage in V, C and C++ languages. Historically, the purpose was to evaluate the changes from SDL1 to SDL2.
Note that the V modules wrapping : SDL2, Imgui and Nuklear have been moved to their separate git repo, and are still used/demonstrated here as git sub-modules.
You can find their own repos here:
Colors, Music and Sounds ripped from amiga title Twintris (1990 nostalgia !)
Ubuntu :
$ sudo apt install libsdl2-ttf-dev libsdl2-mixer-dev libssl-dev
And optionally for extra tests :
$ sudo apt install libglfw3-dev libglm-dev libfreetype-dev
Archlinux:
$ sudo pacman -S glew glm
And maybe other similar packages as for Ubuntu above?
ClearLinux : (maybe miss libopenssl dev ?)
$ sudo swupd bundle-add devpkg-SDL2_ttf devpkg-SDL2_mixer
Windows/MSYS2 : (maybe miss libopenssl dev ?)
$ pacman -S mingw-w64-x86_64-SDL2_ttf mingw-w64-x86_64-SDL2_mixer
Eg: on Linux:
sdl2test$ make
Can then run eg: VNK, VIG demo:
sdl2test$ ./mainnk.exe
sdl2test$ ./mainig.exe
Makefile auto-detects available SDL version (2 or 1)
Old notes:
V
48.6%
C++
20.6%
C
18.5%
Rust
9.1%
Makefile
3.0%