SDL2
1.1、SDL2简介
short for:Simple DirectMedia Layer Version 2
是什么 ?:a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D. It is used by video playback software, emulators, and popular games.
开发语言:C
官方主页:https://www.libsdl.org
1.2、通过包管理器安装SDL2
操作系统包管理器安装命令
WindowsChocolateychoco install -y sdl2
macOSHomeBrewbrew install sdl2
GNU/LinuxHomeBrewbrew install sdl2
aptsudo apt-get install -y sdl2
CentOSyumsudo yum install -y sdl2
dnfsudo dnf install -y sdl2
openSUSEzyppersudo zypper install -y sdl2
Alpine Linuxapksudo apk add sdl2

Arch Linux

ArcoLinux

Manjaro Linux

pacmansudo pacman -Syyu --noconfirm
sudo pacman -S    --noconfirm sdl2
Gentoo LinuxPortagesudo emerge sdl2
1.3、通过编译源码安装SDL2
1.4、SDL2中包含的命令
1.5、SDL2中包含的头文件
1.6、SDL2中包含的库文件
  • libSDL2.{a | so | dylib}