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

High-level rendering system manager. More...

#include <Renderer.h>

Static Public Member Functions

static void BeginScene (const OrthographicCamera &camera)
 Begins a new scene for rendering.
 
static void EndScene ()
 Ends the current scene.
 
static void Submit (const std::shared_ptr< Shader > &shader, const std::shared_ptr< VertexArray > &vertexArray, const glm::mat4 &transform=glm::mat4(1.0f))
 Submits a vertex array for rendering.
 
static RendererAPI::API GetAPI ()
 Gets the current graphics API.
 

Detailed Description

High-level rendering system manager.

The Renderer class manages the high-level rendering pipeline. It:

  • Controls scene rendering state through BeginScene/EndScene
  • Submits drawable objects to the rendering queue
  • Provides access to the current graphics API

This class works in conjunction with RenderCommand to provide both high-level scene management and low-level rendering operations.

Member Function Documentation

◆ BeginScene()

void AE::Graphics::Renderer::Renderer::BeginScene ( const OrthographicCamera & camera)
static

Begins a new scene for rendering.

Sets up any necessary state for beginning a new frame/scene.

◆ EndScene()

void AE::Graphics::Renderer::Renderer::EndScene ( )
static

Ends the current scene.

Finalizes the current frame/scene and prepares for the next one.

◆ GetAPI()

static RendererAPI::API AE::Graphics::Renderer::Renderer::GetAPI ( )
inlinestatic

Gets the current graphics API.

Returns
The active rendering API type

◆ Submit()

void AE::Graphics::Renderer::Renderer::Submit ( const std::shared_ptr< Shader > & shader,
const std::shared_ptr< VertexArray > & vertexArray,
const glm::mat4 & transform = glm::mat4(1.0f) )
static

Submits a vertex array for rendering.

Parameters
shaderThe shader used to render the vertex array
vertexArrayThe vertex array to be rendered
transformThe position in the world

Queues the given geometry for rendering in the current scene.


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