/SNG

C++ Game Draft (WIP)

Primary LanguageC++

SDL Game Draft

This project depends on:

Please install CMake first and download SDL2-2.0.9.

The scripts folder contains the following scripts:

SDL2
Download the sources and extract them into the libs folder,
run scripts/gen_proj-SDL.bat
open Visual Studio and build the project.

Then create the folder scripts/app
(it is set as working directory by cmake)
and copy the SDL2.dll file in it after the SDL2-2.0.9 is built.

SDL2_image
Download the zip sources and extract the folder SDL2_image-2.0.4into the libs folder.
Copy SDL2_image.dll into the app folder.

glew
Download the sources and extract them into the libs folder,
Also copy the glew32.dll file here. It comes with the Glew binaries.

Generate and start the project
You can then run scripts/proj-vsc/gen_proj-vsc.bat to generate the Visual Studio project inside scripts/proj-vsc/build-vsc,
and open the solution in it. Or you can just run start_proj-vsc.bat to build and open the solution once built automatically.

If you want to build with LLVM/Clang
please download and install llvm pre-built binaries
and the LLVM Toolchain Extension for Visual Studio 2017
Then run scripts/proj-llvm/gen_proj-llvm.bat that will generates Visual Studio project files
under scripts/proj-llvm/build-llvm with llvm as target.
To build and open the solution once created just run start_proj-llvm.bat