some refactoring, add props and fix scissors

This commit is contained in:
Igor Stepanov 2025-10-07 16:36:15 +03:00
parent fddf810daf
commit f631382dbd
3 changed files with 20 additions and 7 deletions

View file

@ -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 {};
};