/SDLGL_Base

Base OpenGL/SDL2.0 project

Primary LanguageC++

SDLGL_Base

Base OpenGL/SDL2.0 project

Build

Dependencies

  • SDL2
  • GLM

Get the code

git clone --recursive https://github.com/TomMinor/SDLGL_Base

Note: Make sure to add --recursive so all the submodules are synced too

Configuring CMake

Note: On Windows it is currently necessary to force a 64-bit build with CMAKE_GENERATOR_PLATFORM

Windows

mkdir build
cd build
cmake .. -DCMAKE_GENERATOR_PLATFORM=x64 -DSDL2_DIR="D:/dev/SDL2"

Use the toolset argument (-T) to force the 2013 compilers in a newer version of Visual Studio (such as community)

cmake .. -DCMAKE_GENERATOR_PLATFORM=x64 -T v120 -DSDL2_DIR="D:/dev/SDL2"

Linux

mkdir build
cd build
cmake ..