mirror of
https://gitea.windcorp.ru/Wind-Corporation/Progressia.git
synced 2025-12-16 05:28:36 +03:00
TMP / Made {GLFW,Vulkan}Managers more OO
This commit is contained in:
@@ -1,11 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
|
||||
namespace progressia::desktop {
|
||||
|
||||
void initializeGlfw();
|
||||
void showWindow();
|
||||
void shutdownGlfw();
|
||||
bool shouldRun();
|
||||
void doGlfwRoutine();
|
||||
class GlfwManager {
|
||||
|
||||
public:
|
||||
virtual ~GlfwManager(){};
|
||||
|
||||
virtual void setOnScreenResize(std::function<void()>) = 0;
|
||||
|
||||
virtual void showWindow() = 0;
|
||||
virtual bool shouldRun() = 0;
|
||||
virtual void doGlfwRoutine() = 0;
|
||||
};
|
||||
|
||||
std::shared_ptr<GlfwManager> makeGlfwManager();
|
||||
|
||||
} // namespace progressia::desktop
|
||||
|
||||
Reference in New Issue
Block a user