RendererManager

Manages rendering operations, including initializing the renderer, handling render systems, and rendering frames.

Remarks

Initializes the renderer manager with the specified window manager, Vulkan context, and logger.

Properties

Renderer

(Renderer) { get; set } = null!: The Renderer used

OnRender

(OnRenderDelegate?) { get; set }: Render solids first

OverlayTexture

(Texture?) { get; set }: A texture composited over the frame after the scene, or null for none — the standalone runtime's screen-space GUI. The caller owns the texture's lifetime and re-supplies it each frame.

Public Methods

Initialize

public void Initialize()

Initializes the renderer manager, including the renderer, descriptor pool, UBO buffers, and render systems.

Render

public void Render(double deltaTime, ICamera camera, Node node)

Renders a frame using the specified delta time, camera, and scene node.

Parameters:

  • deltaTime (double): The time elapsed since the last frame.
  • camera (ICamera): The camera used for rendering the scene.
  • node (Node): The root node of the scene to render.

Dispose

public void Dispose()

Disposes of resources used by the renderer manager.