NoJobEngine 2.0.7
Loading...
Searching...
No Matches
Framebuffer.cpp
Go to the documentation of this file.
4#include <stdexcept>
5
6namespace NoJob
7{
8 std::shared_ptr<Framebuffer> Framebuffer::Create(
9 const FramebufferSpecification& specification)
10 {
11 switch (RendererAPI::GetAPI())
12 {
14 return std::make_shared<OpenGLFramebuffer>(specification);
15 default:
16 throw std::runtime_error(
17 "NoJobEngine: unsupported framebuffer graphics API.");
18 }
19 }
20}
Framebuffer declarations for the Rendering subsystem.
OpenGLFramebuffer declarations for the OpenGL Backend subsystem.
RendererAPI declarations for the Rendering subsystem.
static std::shared_ptr< Framebuffer > Create(const FramebufferSpecification &specification)
static GraphicsAPI GetAPI()
Definition RendererAPI.h:49