在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:Hasan-Jawaheri/Wasabi开源软件地址:https://github.com/Hasan-Jawaheri/Wasabi开源编程语言:C++ 94.8%开源软件介绍:WasabiWasabi 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...). Current FeaturesSeamless Infinite Terrains (Geometry clipmaps) Skeletal Animations (GPU-based) Havok Physics (mostly replaced by bullet) Assimp integration (and getting rid of FBX SDK!) BuildingRequirements
Building Wasabigit 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 UsageTo link an application to Wasabi, you will need to link to Vulkan and to the wasabi library #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:
ResourcesDoxygen documentationSamplesContributionContribution 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. Acknowledgments
LicenseGNU Public license, feel free to go wild with this. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论