engine::graphics::RenderQueue class

A high-level utility to sort and optimize draw calls before sending them to the core Renderer.

Public static functions

static auto Default() -> RenderQueue&
Returns the default global RenderQueue instance.

Public functions

void Submit(const RenderCommand& command)
Adds a command to the queue without executing it immediately.
void Flush()
Sorts commands by Z-order and TextureID, then executes them via the singleton Renderer.
void Clear()
Clears the queue for the next frame.

Function documentation

static RenderQueue& engine::graphics::RenderQueue::Default()

Returns the default global RenderQueue instance.

Returns Reference to the default RenderQueue.