Skip to content
A cross platform SDL2 template.
C Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.clang-format
.clang_complete
.editorconfig
LICENSE
Makefile
MyTemplate.vstemplate
README.org
SDL2_template.vcxproj
SDL2_template.vcxproj.filters
__TemplateIcon.ico
config.h
main.c

README.org

This project compiles under Linux, Mac OS, and Windows simply by running:

Linux & Mac:

make

Windows:

nmake

Pre-setup:

Linux:

sudo apt-get install libsdl2-dev

Or whatever the equivalent package is for your distro.

Mac:

brew install sdl2

Windows:

  1. Download the latest VC development files from: https://libsdl.org
  2. Place the entire contents of include and lib under C:\INCLUDE\SDL2.
  3. Copy the SDL2.dll under lib to C:\Windows\System32 and C:\Windows\SysWOW64.
  4. Profit.

Special thanks to this tutorial: https://headerphile.com/sdl2/sdl2-part-0-setting-up-visual-studio-for-sdl2/

Bonus: This project is importable as a Visual Studio 2019 template.

You can’t perform that action at this time.