Brenta Engine 1.1
|
The engine is written entirely in C++ and uses CMake as the build system. In this section we will guide you through the process of building the engine.
Currently, the only officially supported platform is Linux. The developer is aiming to release the engine on Windows and MacOS in the future. If you want to contribute to this issue, feel free to do so and check out the Contributing page. This guide will go through the process on a linux system.
The engine has the following dependencies:
In addition, the following programs are optional:
You may or may not have the libraries available in your packet manger, if not you will need to build them from source. This guide will show you an example of building libassimp.
If you are using Nix, a development shell is provided in the repository. You can enter the shell by running the following command:
You should now have all the dependencies installed and ready to build the engine.
You need libassimp to load 3D models. To build it from source, first clone the repository:
You can build the library with the following commands:
The library will be generated in lib/
. If you don't install the library system-wide (ASSIMP_INSTALL=off), you need to specify the path in an environment variable to run the application, like so:
Likewise, you can build the other dependencies from source.
To compile the demo game, run the following commands:
The binaries will be generated in the build/
directory.
Run the game with:
You can build the documentation with doxygen
(you need to have doxygen installed in your system):
The index will be located in docs/html/index.html
.
To execute the formatter, run:
The engine uses It's own testing framework, valFuzz. To build tests, run:
There is an examples
directory, you can run an exmple with the following command:
Change target to the example you want to compile