WIP - I'am working on documentation and some installation instructions
You can use it as a starting point for small projects. My intention here is to have an easy starting point for small projects that need graphics, easily extension with Lua and a portable build system like CMake.
It is an essential app in SDL 2 with events, input management, and exposing some functions to Lua as an example.
Read here more instructions per platform.
- Cmake, see Requirements
- SDL 2
- Lua 5.3
Start cloning this repository.
git clone https://github.com/klassmann/sdl2-lua53-example.git myproject
Inside the repository.
mkdir build
cd build
Select your plataform to follow the cmake instructions.
The following command will prepare the project with a Makefile.
cmake ..
make
You can use the previous configuration for Linux and use Makefiles or you can do the following commando for generating a Xcode project.
cmake -G"Xcode" ..
open example.xcodeproj # The default name is "example" in CMakeLists.txt
TODO.