Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Building ModelLoader

Both Linux and Windows binaries for ModelLoader are available on the repo. Furthermore, all releases of TheEngine should have ModelLoader bundled.

However, if you really want to build it from source, instructions are provided below.

Requirements

  • CMake (>=3.10)
  • Ninja (>=1.10)
  • A C++ compiler (Clang, MSVC, g++)

Cloning the repo

# Clone the repo
git clone https://thorn.veritius.dev/engine/ModelLoader

# Assimp is given as a submodule
git submodule update --init --recursive

Building the binary

We use CMake as our build system and Ninja as our generator.

If you’re on Windows, use the x64 Native Tools Command Prompt installed with Visual Studio.

# From the root directory

cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
cmake --build build