Static interface for rendering operations. More...
#include <RenderCommand.h>
Static Public Member Functions | |
static void | SetClearColor (const glm::vec4 &color) |
Sets the clear color for the render buffer. | |
static void | Clear () |
Clears the render buffer using the current clear color. | |
static void | DrawIndexed (const std::shared_ptr< VertexArray > &vertexArray) |
Performs indexed drawing using the provided vertex array. | |
Static interface for rendering operations.
RenderCommand provides a simplified static interface to the rendering API. It acts as a facade over the RendererAPI, making it easier to perform common rendering operations without directly managing a RendererAPI instance.
All methods are static and delegate to the underlying RendererAPI implementation.
|
inlinestatic |
Performs indexed drawing using the provided vertex array.
vertexArray | Vertex array containing the geometry to draw |
|
inlinestatic |
Sets the clear color for the render buffer.
color | RGBA color vector to use when clearing the screen |