Skip to content

GraphicsAPI reference

Interface IGraphicsBackendFactory

Namespace: MicroEngine.Graphics.Devices
Assembly: MicroEngine.Graphics.dll
Guide: The graphics device

Creates devices of one backend. A backend that accepts only its own surfaces says so through UnsupportedReason.

C#
public interface IGraphicsBackendFactory

Properties

Name

Backend name: “sdl-renderer”, “raylib”, “reference” (and, later, “sdl-gpu”).

C#
string Name { get; }

Property Value

string

Methods

Create(ISurface?, GraphicsDeviceOptions)

Creates a device for surface (null = offscreen only, where the backend supports it).

C#
IGraphicsDevice Create(ISurface? surface, GraphicsDeviceOptions options)

Parameters

surface ISurface?

options GraphicsDeviceOptions

Returns

IGraphicsDevice

UnsupportedReason(ISurface?)

Null when Create can succeed for surface, otherwise why not.

C#
string? UnsupportedReason(ISurface? surface)

Parameters

surface ISurface?

Returns

string?