mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
Merge remote-tracking branch 'mih/dev' into sdl-try-2
This commit is contained in:
commit
8cd75ad790
106 changed files with 2838 additions and 1121 deletions
|
|
@ -9,6 +9,12 @@ class ImageData;
|
|||
class Input;
|
||||
struct DisplaySettings;
|
||||
|
||||
enum class WindowMode {
|
||||
WINDOWED,
|
||||
FULLSCREEN,
|
||||
BORDERLESS
|
||||
};
|
||||
|
||||
class Window {
|
||||
public:
|
||||
virtual ~Window() = default;
|
||||
|
|
@ -22,8 +28,8 @@ public:
|
|||
virtual void setShouldClose(bool flag) = 0;
|
||||
|
||||
virtual void setCursor(CursorShape shape) = 0;
|
||||
virtual void toggleFullscreen() = 0;
|
||||
virtual bool isFullscreen() const = 0;
|
||||
virtual void setMode(WindowMode mode) = 0;
|
||||
virtual WindowMode getMode() const = 0;
|
||||
|
||||
virtual void setIcon(const ImageData* image) = 0;
|
||||
|
||||
|
|
@ -51,6 +57,7 @@ public:
|
|||
initialize(DisplaySettings* settings, std::string title);
|
||||
protected:
|
||||
glm::ivec2 size;
|
||||
WindowMode mode = WindowMode::WINDOWED;
|
||||
};
|
||||
|
||||
namespace display {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue