NoJobEngine
2.0.7
Toggle main menu visibility
Loading...
Searching...
No Matches
VertexArray.cpp
Go to the documentation of this file.
1
#include "
Engine/Renderer/VertexArray.h
"
2
#include "
Engine/Renderer/RendererAPI.h
"
3
#include "
Engine/Platform/OpenGL/OpenGLVertexArray.h
"
4
#include <stdexcept>
5
6
namespace
NoJob
7
{
8
std::shared_ptr<VertexArray>
VertexArray::Create
()
9
{
10
switch
(
RendererAPI::GetAPI
())
11
{
12
case
GraphicsAPI::OpenGL
:
13
return
std::make_shared<OpenGLVertexArray>();
14
default
:
15
throw
std::runtime_error(
"NoJobEngine: unsupported graphics API."
);
16
}
17
}
18
}
OpenGLVertexArray.h
OpenGLVertexArray declarations for the OpenGL Backend subsystem.
RendererAPI.h
RendererAPI declarations for the Rendering subsystem.
VertexArray.h
VertexArray declarations for the Rendering subsystem.
NoJob::RendererAPI::GetAPI
static GraphicsAPI GetAPI()
Definition
RendererAPI.h:49
NoJob::VertexArray::Create
static std::shared_ptr< VertexArray > Create()
Definition
VertexArray.cpp:8
NoJob
Definition
BTActionNode.h:13
NoJob::GraphicsAPI::OpenGL
@ OpenGL
Definition
RendererAPI.h:16
Engine
Renderer
VertexArray.cpp
Generated by
1.18.0