|
Muto 0.0.1
|
An abstract class defining the interface for a rendering API. More...
#include <RendererAPI.h>
Public Types | |
| enum class | API { RAPI_None = 0 , RAPI_OpenGL = 1 } |
| API that can be used by the Renderer. More... | |
Public Member Functions | |
| virtual void | Clear ()=0 |
| Clears the rendering buffers. | |
| virtual void | DrawIndexed (const Ref< VertexArray > &vertexArray, uint32_t indexCount=0)=0 |
| Draws indexed geometry using the provided vertex array. | |
| virtual void | Init ()=0 |
| Initializes the rendering API. | |
| virtual void | SetClearColor (const glm::vec4 &color)=0 |
| Sets the clear color for the rendering API. | |
| virtual void | SetViewport (uint32_t x, uint32_t y, uint32_t width, uint32_t height)=0 |
| Sets the viewport dimensions. | |
| virtual | ~RenderAPI ()=default |
Static Public Member Functions | |
| static API | GetAPI () |
| Returns the current rendering API. | |
Static Private Attributes | |
| static API | s_API = RenderAPI::API::RAPI_OpenGL |
An abstract class defining the interface for a rendering API.
|
strong |
API that can be used by the Renderer.
| Enumerator | |
|---|---|
| RAPI_None | |
| RAPI_OpenGL | |
|
virtualdefault |
Clears the rendering buffers.
Implemented in Muto::OpenGLRendererAPI.
Referenced by Muto::RenderCommand::Clear().
|
pure virtual |
Draws indexed geometry using the provided vertex array.
Implemented in Muto::OpenGLRendererAPI.
Initializes the rendering API.
Implemented in Muto::OpenGLRendererAPI.
Referenced by Muto::RenderCommand::Init().
Sets the clear color for the rendering API.
Implemented in Muto::OpenGLRendererAPI.
|
pure virtual |
Sets the viewport dimensions.
Implemented in Muto::OpenGLRendererAPI.
Referenced by Muto::RenderCommand::SetViewport().
|
staticprivate |
Referenced by GetAPI().