Wasabi Vulkan Game Engine is currently a work-in-progress port for HasX11 Game Engine. Wasabi is designed to allow C++ programmers to write games and graphics applications easily without having to worry about the details of the tedious graphics APIs (Vulkan, Direct3D, OpenGL, etc...).
Seamless Infinite Terrains (Geometry clipmaps)
Skeletal Animations (GPU-based)
Havok Physics (mostly replaced by bullet)
Assimp integration (and getting rid of FBX SDK!)
- Vulkan SDK. You may also need to install vendor/gpu specific driver for Vulkan (or maybe that's not a thing anymore...)
- Install
cmake
3.15. - Install python3.
- (Windows) Visual Studio (make sure to add the feature
Visual C++ tools for CMake
during installation) - (MacOS) XCode
git submodule init && git submodule update
mkdir build && cd build
cmake ..
This will automatically initialize and update submodule dependencies. On Windows, this will generate a solution build/Wasabi.sln
, which you can open to use Visual Studio on the source code to edit/compile.
To link an application to Wasabi, you will need to link to Vulkan and to the wasabi library libwasabi.a
(or wasabi.lib
on Windows). On mac, you will need to add the following frameworks as well: Cocoa, CoreAudio, IOKit, CoreFoundation, CoreVideo, AudioUnit. You may use the CMake helper in CMake/LinkToWasabi.cmake
(e.g. link_target_to_wasabi(wasabi_test "<PATH_TO_WASABI>")
in your cmake file) to automatically link to the engine.
#include "Wasabi/Wasabi.hpp"
class MyApplication : public Wasabi {
public:
WError Setup() {
// start the engine
WError status = StartEngine(640, 480);
if (!status) {
// Failed to start the engine...
return status;
}
return status;
}
bool Loop(float fDeltaTime) {
return true; // return true to continue to next frame
}
void Cleanup() {
}
};
Wasabi* WInitialize() {
return new MyApplication();
}
To start the engine, you need to implement the function WInitialize and make it return a new instance of a class that implements the Wasabi abstract class (in this case MyApplication).
MyApplication must implement 3 functions from Wasabi: Setup, Loop and Cleanup:
- Setup(): All application setup code goes here. You will need to call StartEngine(width, height) here. StartEngine() creates the window and initializes the engine's resources. You shouldn't create any Wasabi objects (WObject, WGeometry, WImage, etc...) before calling StartEngine().
- Loop(): This function is called every frame. This is where you update your application.
- Cleanup(): This is called before the engine exits so you can cleanup resources.
Contribution is highly appreciated! Please pick up or create an issue first. Once an issue has been selected and you wish to address it, fork the repository and create a branch to implement the necessary changes. Once you're done and you have tested your changes, submit a pull request and it shall be reviewed shortly and hopefully merged into the repository.
- Abdulrahman Fayad
- Yazan Boshmaf
- All the authors and contributors to the great open source libraries <3
GNU Public license, feel free to go wild with this.