47 s_RendererAPI->SetClearColor(color);
60 s_RendererAPI->Clear();
83 s_RendererAPI->BeginScene();
96 inline static void DrawIndexed(
const std::shared_ptr<VertexArray>& vertexArray)
98 s_RendererAPI->DrawIndexed(vertexArray);
108 s_RendererAPI->EndScene();
118 return s_RendererAPI->GetClearColor();
#define KARMA_API
Defining Karma's API macro for storage class information.
Definition Core.h:41
This file contains the class RendererAPI.
A class with static routines relevant for rendering a scene using RendererAPI.
Definition RenderCommand.h:22
static RendererAPI * GetRendererAPI()
Getter for the renderer API.
Definition RenderCommand.h:126
static void EndScene()
The clearing of resources, if any, at the end of frame.
Definition RenderCommand.h:106
static void DeInit()
Deinitialize RenderCommand by freeing up rendering resources.
Definition RenderCommand.cpp:30
static void Clear()
Clears the rendering screen.
Definition RenderCommand.h:58
static void DrawIndexed(const std::shared_ptr< VertexArray > &vertexArray)
Actually issue a draw call of primitives with indexed vertices.
Definition RenderCommand.h:96
static glm::vec4 & GetClearColor()
Getter for the set clear color.
Definition RenderCommand.h:116
static void Init()
Initializing RenderCommand by creating the instance of appropriate RendererAPI Called in the main fun...
Definition RenderCommand.cpp:9
static void BeginScene()
Setting up resources for rendering of a scene.
Definition RenderCommand.h:81
static void SetClearColor(const glm::vec4 &color)
Sets the background color of the screen.
Definition RenderCommand.h:45
An abstract class for a renderer.
Definition RendererAPI.h:23