mirror of
https://gitea.windcorp.ru/Wind-Corporation/Progressia.git
synced 2025-04-22 00:50:45 +03:00
29 lines
444 B
C++
29 lines
444 B
C++
#pragma once
|
|
|
|
#include "vulkan_common.h"
|
|
|
|
namespace progressia::desktop {
|
|
|
|
class VulkanManager {
|
|
|
|
private:
|
|
std::unique_ptr<Vulkan> vulkan;
|
|
|
|
public:
|
|
VulkanManager();
|
|
~VulkanManager();
|
|
|
|
Vulkan *getVulkan();
|
|
const Vulkan *getVulkan() const;
|
|
|
|
void resizeSurface();
|
|
|
|
/*
|
|
* Returns false when the frame should be skipped
|
|
*/
|
|
bool startRender();
|
|
void endRender();
|
|
};
|
|
|
|
} // namespace progressia::desktop
|