Simple city-builder using OpenGL. For Windows and Linux. See http://konstruisto.com/ for more.
There are two building toolchains:
- Linux/Windows GNU headers using Makefile and Clang
- Windows MSVC build using Visual Studio and Clang
Only x64 builds are supported. MSVC is preferred for Windows. Windows GNU version is no longer maintained and will be removed.
- Set up dependencies running
scripts/setup-deps.shfrom the main directory:git clone git@github.com:kantoniak/konstruisto.git konstruisto && cd konstruisto && chmod +x ./scripts/setup-deps.sh && sudo ./scripts/setup-deps.sh && cd - - Run
make build run
To build release configuration use make rebuild run CONFIG=RELEASE. Command make help shows all possible options.
You will need to set up cmake in PATH if it's not already there.
- Set up dependencies running
scripts/setup-deps.ps1in Powershell from the main directory:git clone git@github.com:kantoniak/konstruisto.git konstruisto Set-Location konstruisto .\scripts\setup-deps.ps1 - Build NanoVG release libraries:
- Open solution
vendor\nanovg\build-msvc\nanovg.sln - Build project
nanovgfor Release/x64.
- Open solution
- Build Assimp release libraries:
- Open solution
vendor\assimp-5.0.0\build-msvc\Assimp.sln - Build project
ALL_BUILDfor MinSizeRel/x64.
- Open solution
- Open Visual Studio solution and build project
Konstruisto.
Please note that only x64 builds are supported.
You can use scripts/setup-deps.ps1 to set up the dependencies.
- You will need
make,clang,clang++,clang-formatinPATH. - You will need
windresinPATHfrommingw-w64 - Install GLFW in
vendor/glew-3.3 - Extract
glmlibrary tovendor/glm-0.9.9.6 - Extract
cereallibrary tovendor/cereal-1.3.0 - Put
stb_image.htovendor/stb/stb/stb_image.h - Build and install
nanovg(see below)
You will need premake5 (download).
-
Extract repo into
vendor/nanovg. -
Build x64 release:
cd vendor/nanovg premake [vs2019|--cc=gcc gmake] mv build build-[msvc|windows|linux] cd build-[msvc|windows|linux] make config=release64 nanovg
Copyright © 2017-2019 Krzysztof Antoniak
Contents of this repository is licensed under GNU General Public License, version 3.0 (GPL-3.0) with additional term according to the section 7(c) of the license: should you make a derivative of this repository, please do not use the name "Konstruisto", Konstruisto logo or use similar naming for your game what could misguide users. See LICENSE.txt for details.
- GLAD-generated OpenGL loading code, public domain
- GLFW 3.3 under the zlib/libpng license
- GLM 0.9.9.6 under the MIT License
- Cereal 1.3.0 under BSD license
- NanoVG under the zlib/libpng license
- stb_image, a public domain image loading library
- Assimp 5.0.0 under BSD license