NoJobEngine 2.0.7
Loading...
Searching...
No Matches
NoJob::RendererAPI Class Referenceabstract

#include <RendererAPI.h>

Inheritance diagram for NoJob::RendererAPI:
NoJob::OpenGLRendererAPI

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

Detailed Description

Definition at line 20 of file RendererAPI.h.

Constructor & Destructor Documentation

◆ ~RendererAPI()

virtual NoJob::RendererAPI::~RendererAPI ( )
virtualdefault

Member Function Documentation

◆ Clear()

virtual void NoJob::RendererAPI::Clear ( )
pure virtual

Implemented in NoJob::OpenGLRendererAPI.

◆ DrawIndexed()

virtual void NoJob::RendererAPI::DrawIndexed ( const VertexArray & vertexArray)
pure virtual

Implemented in NoJob::OpenGLRendererAPI.

◆ DrawIndexedRange()

virtual void NoJob::RendererAPI::DrawIndexedRange ( const VertexArray & vertexArray,
std::uint32_t indexCount,
std::uint32_t indexOffset )
pure virtual

Implemented in NoJob::OpenGLRendererAPI.

◆ DrawLines()

virtual void NoJob::RendererAPI::DrawLines ( const VertexArray & vertexArray,
std::uint32_t vertexCount )
pure virtual

Implemented in NoJob::OpenGLRendererAPI.

◆ GetAPI()

◆ Init()

virtual void NoJob::RendererAPI::Init ( )
pure virtual

Implemented in NoJob::OpenGLRendererAPI.

◆ SetClearColor()

virtual void NoJob::RendererAPI::SetClearColor ( float r,
float g,
float b,
float a )
pure virtual

Implemented in NoJob::OpenGLRendererAPI.

◆ SetViewport()

virtual void NoJob::RendererAPI::SetViewport ( std::uint32_t x,
std::uint32_t y,
std::uint32_t width,
std::uint32_t height )
pure virtual

Implemented in NoJob::OpenGLRendererAPI.

Member Data Documentation

◆ s_API

GraphicsAPI NoJob::RendererAPI::s_API = GraphicsAPI::OpenGL
staticprotected

Definition at line 52 of file RendererAPI.h.

Referenced by GetAPI().


The documentation for this class was generated from the following files: