What is “sdl2_image” Package?

Library for loading images as SDL surfaces and textures
For more details: https://www.libsdl.org/projects/SDL_image/

Installation

  • Open Terminal by pressing command+space then type terminal and hit Enter key.
  • Install homebrew first.
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
  • Install sdl2_image.
    brew install sdl2_image

Now, use sdl2_image!