|
NoJobEngine 2.0.7
|
#include <RendererAPI.h>
Public Member Functions | |
| virtual | ~RendererAPI ()=default |
| virtual void | Init ()=0 |
| virtual void | SetViewport (std::uint32_t x, std::uint32_t y, std::uint32_t width, std::uint32_t height)=0 |
| virtual void | SetClearColor (float r, float g, float b, float a)=0 |
| virtual void | Clear ()=0 |
| virtual void | DrawIndexed (const VertexArray &vertexArray)=0 |
| virtual void | DrawIndexedRange (const VertexArray &vertexArray, std::uint32_t indexCount, std::uint32_t indexOffset)=0 |
| virtual void | DrawLines (const VertexArray &vertexArray, std::uint32_t vertexCount)=0 |
Static Public Member Functions | |
| static GraphicsAPI | GetAPI () |
Static Protected Attributes | |
| static GraphicsAPI | s_API = GraphicsAPI::OpenGL |
Definition at line 20 of file RendererAPI.h.
|
virtualdefault |
|
pure virtual |
Implemented in NoJob::OpenGLRendererAPI.
|
pure virtual |
Implemented in NoJob::OpenGLRendererAPI.
|
pure virtual |
Implemented in NoJob::OpenGLRendererAPI.
|
pure virtual |
Implemented in NoJob::OpenGLRendererAPI.
|
inlinestatic |
Definition at line 49 of file RendererAPI.h.
References s_API.
Referenced by NoJob::Framebuffer::Create(), NoJob::IndexBuffer::Create(), NoJob::Shader::Create(), NoJob::VertexArray::Create(), NoJob::VertexBuffer::Create(), and NoJob::RenderCommand::Init().
|
pure virtual |
Implemented in NoJob::OpenGLRendererAPI.
|
pure virtual |
Implemented in NoJob::OpenGLRendererAPI.
|
pure virtual |
Implemented in NoJob::OpenGLRendererAPI.
|
staticprotected |
Definition at line 52 of file RendererAPI.h.
Referenced by GetAPI().