Monad Engine da02fba2
> Undercity Codex_
Loading...
Searching...
No Matches
OpenGLRendererBackend.cpp
Go to the documentation of this file.
2
3#include "graphics/GraphicsAPI.h"
4
5namespace mnd
6{
7
9 : m_graphicsAPI(graphicsAPI)
10{
11}
12
14{
15 return m_graphicsAPI.Init();
16}
17
18std::unique_ptr<RendererBackend> CreateOpenGLRendererBackend(GraphicsAPI &graphicsAPI)
19{
20 return std::make_unique<OpenGLRendererBackend>(graphicsAPI);
21}
22
23} // namespace mnd
OpenGL 3.3 Core Profile abstraction layer.
Definition GraphicsAPI.h:41
bool Init()
Set up initial OpenGL state (depth test, face culling, etc.).
OpenGLRendererBackend(GraphicsAPI &graphicsAPI)
std::unique_ptr< RendererBackend > CreateOpenGLRendererBackend(GraphicsAPI &graphicsAPI)