All functions that the create/destroy a global static singleton should use the names init and shutdown, while any static functions that return/take a new object should use the names create and destroy. e.g. void Renderer::init() and void Renderer::shutdown() Window* Window::create() and void Window::destroy(Window* window)
21 lines
405 B
C++
21 lines
405 B
C++
/**
|
|
* Copyright (c) 2025, Jayden Grubb <contact@jaydengrubb.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <nova/api.h>
|
|
#include <nova/render/render_api.h>
|
|
#include <nova/render/render_driver.h>
|
|
|
|
namespace Nova {
|
|
class NOVA_API Renderer {
|
|
public:
|
|
static void init(RenderAPI api);
|
|
static void shutdown();
|
|
static RenderDriver* get_driver();
|
|
};
|
|
} // namespace Nova
|