Rename Renderer::create to Renderer::init

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)
This commit is contained in:
2025-03-28 13:39:21 +10:00
parent 8eb5a39c4c
commit f727261a84
3 changed files with 3 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ using namespace Nova;
static std::unique_ptr<RenderDriver> s_driver;
void Renderer::create(const RenderAPI api) {
void Renderer::init(const RenderAPI api) {
NOVA_AUTO_TRACE();
NOVA_ASSERT(!s_driver);
switch (api) {