mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +00:00
some refactoring, add props and fix scissors
This commit is contained in:
parent
fddf810daf
commit
f631382dbd
3 changed files with 20 additions and 7 deletions
|
|
@ -15,7 +15,7 @@ public:
|
|||
window_sdl &operator=(const window_sdl &) = delete;
|
||||
window_sdl &operator=(window_sdl &&) = default;
|
||||
|
||||
void swapBuffers() const noexcept override;
|
||||
void swapBuffers() noexcept override;
|
||||
|
||||
bool isMaximized() const override;
|
||||
bool isFocused() const override;
|
||||
|
|
@ -51,9 +51,9 @@ private:
|
|||
bool toClose = false;
|
||||
bool fullscreen = false;
|
||||
|
||||
SDL_Window *window;
|
||||
SDL_GLContext context;
|
||||
SDL_Window *window = nullptr;
|
||||
SDL_GLContext context = nullptr;
|
||||
|
||||
std::stack<glm::vec4> scissorStack;
|
||||
glm::vec4 scissorArea;
|
||||
glm::vec4 scissorArea {};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue