ich hab die Header für das komplette SDL-Paket übersetzt und für PureBasic verfügbar gemacht.
https://github.com/GPIforGit/SDL_For_PB/releases
Mac-User müssen die SDL-Frameworks installieren: Kurzfassung:
Code: Alles auswählen
download *.dmg from this files
https://www.libsdl.org/download-2.0.php#source
https://www.libsdl.org/projects/SDL_image/
https://www.libsdl.org/projects/SDL_mixer/
https://www.libsdl.org/projects/SDL_net/
https://www.libsdl.org/projects/SDL_rtf/
https://www.libsdl.org/projects/SDL_ttf/
open the *.dmg
copy "sdl*.frameworks" to /Library/Frameworks/
more infos for example here: https://lazyfoo.net/tutorials/SDL/01_hello_SDL/mac/index.php
Beispiele:
https://github.com/GPIforGit/SDL-Examples
Modern-Open-GL-Beispiele:
https://github.com/GPIforGit/LearnOpenGL/releases