Simple city-builder using OpenGL. For Windows and Linux. See http://konstruisto.com/ for more.
Just go with make rebuild run. To build release configuration: make rebuild run CONFIG=RELEASE. make help shows possible options.
For development, also build tests (see below).
- You will need
make,clang,clang++,clang-formatinPATH. - Install GLEW in
ext/glew-2.0.0 - Install GLFW in
ext/glew-3.2.1 - Extract
glmlibrary toext/glm - Put
stb_image.htoext/stb/stb/stb_image.h - Build and install
nanovg(see below) - You will need
windresinPATHfrommingw-w64
- Install
clang-3.9 lldb-3.9. Exportclang,clang++,clang-formattoPATH. - Install
libglew-dev(2.0.0): https://launchpad.net/ubuntu/+source/glew - Install
libglfw3-dev(3.2.1): https://launchpad.net/ubuntu/+source/glfw3 - Download
glmand extract toext/glmwget https://github.com/g-truc/glm/releases/download/0.9.8.4/glm-0.9.8.4.zip && unzip glm-0.9.8.4.zip -d ext/ && rm glm-0.9.8.4.zip - Download
stb_image.htoext/stb/stb/stb_image.hmkdir -p ext/stb/stb/ && wget https://raw.githubusercontent.com/nothings/stb/master/stb_image.h -P ext/stb/stb/ - Build and install
nanovggit clone git@github.com:memononen/nanovg.git ext/nanovg && (cd ext/nanovg && premake4 --cc=gcc gmake && mv build/ build-linux/ && cd build-linux/ && make config=release64 nanovg)
You will need premake4 (download).
-
Extract repo into
ext/nanovg. -
Build x64 release:
cd ext/nanovg premake --cc=gcc gmake mv build build-[windows|linux] cd build-[windows|linux] make config=release64 nanovg
wget https://github.com/google/googletest/archive/release-1.8.0.zip --no-check-certificate && unzip release-1.8.0 -d ext/ && rm release-1.8.0
mkdir -p ext/googletest-release-1.8.0/googletest/lib/ && cd ext/googletest-release-1.8.0/googletest/lib/
clang++ -isystem ../include -I../ -pthread -c "../src/gtest-all.cc"
ar -rv libgtest.a gtest-all.o
cd -
Copyright © 2017 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.
- GLFW 3.2.1 under the zlib/libpng license
- GLEW 2.0.0 under the Modified BSD License, the Mesa 3-D License (MIT) and the Khronos License (MIT)
- GLM 0.9.8.4 under the MIT License
- NanoVG under the zlib/libpng license
- stb_image, a public license image loading library
