mirror of
https://gitea.windcorp.ru/Wind-Corporation/Progressia.git
synced 2025-12-16 09:28:34 +03:00
TMP / Made {GLFW,Vulkan}Managers more OO
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user