CoriEngine
Loading...
Searching...
No Matches
API.cpp
Go to the documentation of this file.
1#include "API.hpp"
3
4namespace Cori {
5 namespace Graphics {
6 namespace Internal {
7 std::unique_ptr<CoriGraphicsAPI> API::s_GraphicsAPI = nullptr;
8 void API::Init() {
10 s_GraphicsAPI->Init();
11 Renderer2D::Init();
12 }
13
15 Renderer2D::Shutdown();
16 s_GraphicsAPI.reset();
17 }
18 }
19 }
20}
static std::unique_ptr< CoriGraphicsAPI > Create()
static void Shutdown()
Definition API.cpp:14
static std::unique_ptr< CoriGraphicsAPI > s_GraphicsAPI
Definition API.hpp:63
Almost everything connected to graphics is in this namespace.
Definition Window.hpp:7
Global engine namespace.