mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
move window-related code from Engine.cpp to WindowControl
This commit is contained in:
parent
87ff77a73f
commit
4bafad708e
6 changed files with 116 additions and 60 deletions
24
src/engine/WindowControl.hpp
Normal file
24
src/engine/WindowControl.hpp
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#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();
|
||||
|
||||
void saveScreenshot();
|
||||
private:
|
||||
Engine& engine;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue