DRM/KMS backebd

Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2026-01-12 16:38:28 +02:00
parent 402cdd43da
commit 9f2dab344d
4 changed files with 341 additions and 104 deletions

View File

@@ -38,6 +38,11 @@ struct Application {
static auto the() -> Application &;
private:
enum class Backend {
SDL,
KMS,
};
Application();
~Application();
@@ -50,6 +55,7 @@ private:
auto clamp_mouse_to_window(int width, int height) -> void;
SDL_Window *m_window { nullptr };
Backend m_backend { Backend::SDL };
Logger m_logger { "Lunar" };
std::unique_ptr<VulkanRenderer> m_renderer;
Skybox m_skybox;