Contains platform and API specific code written by Primal community members.
The general idea is to simply copy the files from this repository over on top of your Primal Engine code and it should work. It's possible you'll need to install platform-specific SDKs/APIs such as Vulkan SDK.
Install Autodesk FBX SDK 2020.2 or later.
Install Vulkan SDK
Take the following steps to build Primal+ for Microsoft Windows.
- Make sure you have both Primal and Primal+ on your machine.
- Create a folder that will contain both, for example
PrimalMerge\
. - Copy everything from Primal solution (except the .git and .vs folders) to
PrimalMerge\
. - Copy everything from Primal+ (except the .git and .vs folders) to
PrimalMerge\
- When prompted if you want to overwrite some file, choose yes to replace them.
- Run
GenerateProjectFiles.bat
- Open
Primal.sln
using Visual Studio 2022 or later.
Take the following steps to build Primal+ for Linux.
- Make sure you have GCC installed on your machine.
- Follow steps 1 - 5 from the Windows section above.
- You may need to enter
chmod +x GenerateProjectFiles.sh
andchmod +x W_GenerateProjectFiles.sh
- Run
GenerateProjectFiles.sh
to generate Makefiles for use with XLib - Run
W_GenerateProjectFiles.sh
to generate Makefiles for use with Wayland (NOTE: Wayland is not implemented yet, this will be coming soon) - Makefiles will now be generated. Simply enter the
make
command in the root folder to build all configurations, or browse in your editor of choice.
Note: The Editor is currently Windows only, so this will only build the engine, and the engine test.
We're using Premake 5.0 to generate C++ project files. However, it doesn't cover all options offered by Visual Studio C++ compiler and linker. When necessary, you can tweak the project settings afterwards to set any options that are missing.
In order to make it as easy as possible for everyone to integrate the code in their engine, contributions should use the same folder structure and naming conventions as Primal Engine's code base. We're looking forward to seeing your contributions.