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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user