Moved RenderDriver/WindorDriver init code to static create functions

This commit is contained in:
2025-04-08 18:24:33 +10:00
parent 286dd0fb0e
commit 608af1b866
9 changed files with 44 additions and 65 deletions

View File

@@ -1,19 +0,0 @@
/**
* Copyright (c) 2025, Jayden Grubb <contact@jaydengrubb.com>
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include <nova/api.h>
#include <nova/platform/window_driver.h>
namespace Nova {
class NOVA_API System {
public:
static void init();
static void shutdown();
static WindowDriver* get_driver();
};
} // namespace Nova

View File

@@ -7,7 +7,6 @@
#pragma once
#include <nova/api.h>
#include <nova/render/render_driver.h>
#include <nova/types.h>
#include <string_view>
@@ -17,6 +16,7 @@ namespace Nova {
class NOVA_API WindowDriver {
public:
static WindowDriver* create();
virtual ~WindowDriver() = default;
virtual void poll_events() = 0;