desktop code refactoring

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2025-04-10 23:31:16 +02:00
parent b3bf03999b
commit 5b82cd8189
22 changed files with 163 additions and 158 deletions

17
src/model/Window.h Normal file
View File

@@ -0,0 +1,17 @@
#pragma once
#include "SDL3/SDL.h"
class Window {
public:
explicit Window(SDL_Window* window)
: m_window(window) {
}
[[nodiscard]] auto window() const -> SDL_Window*;
[[nodiscard]] auto renderer() const -> SDL_Renderer*;
private:
SDL_Window* m_window = nullptr;
};