https://github.com/almasb/sdl2-demo
A minimal example using SDL2
https://github.com/almasb/sdl2-demo
Last synced: 8 months ago
JSON representation
A minimal example using SDL2
- Host: GitHub
- URL: https://github.com/almasb/sdl2-demo
- Owner: AlmasB
- License: mit
- Created: 2018-01-06T18:11:23.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-05-15T11:44:54.000Z (about 3 years ago)
- Last Synced: 2025-04-05T16:23:24.967Z (about 1 year ago)
- Language: C
- Size: 4.45 MB
- Stars: 9
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SDL2-Demo
A minimal example using SDL2
## Linux
Assuming developer versions of SDL2 and SDL2_image are installed:
```
cd SDL2-Demo
mkdir build
cd build
cmake ..
make
./MyGame
```
## Windows x64
Assuming Visual Studio 2015 is installed: (via MinGW64)
```
cd SDL2-Demo
mkdir build
cd build
cmake .. -G "Visual Studio 14 2015 Win64"
```
After this a ".sln" will be generated that can be opened with Visual Studio 2015.
Right click on MyGame in project explorer and select as startup project.
You can now run the demo from Visual Studio.
## Mac OS
Not tested, PRs are welcome!