Wasabi Vulkan Game Engine
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...).
OpenAL Sounds
Sprites
Text
Lights
Effects & Materials
Particles
Soft Particles
Particle Lighting
Basic Shadows
Soft Shadows
Cascaded Shadowmaps
Multi-directional Shadows
Deferred Rendering
Seamless Infinite Terrains (Geometry clipmaps)
Skeletal Animations (GPU-based)
Geometry Instancing
Havok Physics (mostly replaced by bullet)
Bullet Physics
File format for game assets
Map Editor
Linux Support
Mac Support
Assimp integration (and getting rid of FBX SDK!)
cmake
3.15.Visual C++ tools for CMake
during installation)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:
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.
GNU Public license, feel free to go wild with this.