mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
26 lines
403 B
C++
26 lines
403 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
|
|
class Window;
|
|
class Input;
|
|
class Engine;
|
|
|
|
class WindowControl {
|
|
public:
|
|
struct Result {
|
|
std::unique_ptr<Window> window;
|
|
std::unique_ptr<Input> input;
|
|
};
|
|
WindowControl(Engine& engine);
|
|
|
|
Result initialize();
|
|
|
|
void nextFrame(bool waitForRefresh);
|
|
|
|
void saveScreenshot();
|
|
|
|
void toggleFullscreen();
|
|
private:
|
|
Engine& engine;
|
|
};
|