TMP / Made {GLFW,Vulkan}Managers more OO

This commit is contained in:
2023-03-27 21:33:09 +02:00
parent 50e3a44a81
commit 54f73b2e44
10 changed files with 179 additions and 106 deletions

View File

@@ -4,18 +4,25 @@
namespace progressia::desktop {
void initializeVulkan();
class VulkanManager {
Vulkan *getVulkan();
private:
std::unique_ptr<Vulkan> vulkan;
void resizeVulkanSurface();
public:
VulkanManager();
~VulkanManager();
/*
* Returns false when the frame should be skipped
*/
bool startRender();
void endRender();
Vulkan *getVulkan();
const Vulkan *getVulkan() const;
void shutdownVulkan();
void resizeSurface();
/*
* Returns false when the frame should be skipped
*/
bool startRender();
void endRender();
};
} // namespace progressia::desktop