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