Arnold Engine
 
Loading...
Searching...
No Matches
AE::Graphics::Renderer::RenderCommand Class Reference

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.
 

Detailed Description

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.

Member Function Documentation

◆ DrawIndexed()

static void AE::Graphics::Renderer::RenderCommand::DrawIndexed ( const std::shared_ptr< VertexArray > & vertexArray)
inlinestatic

Performs indexed drawing using the provided vertex array.

Parameters
vertexArrayVertex array containing the geometry to draw

◆ SetClearColor()

static void AE::Graphics::Renderer::RenderCommand::SetClearColor ( const glm::vec4 & color)
inlinestatic

Sets the clear color for the render buffer.

Parameters
colorRGBA color vector to use when clearing the screen

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