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.
public interface IGraphicsBackendFactoryProperties
Name
Backend name: “sdl-renderer”, “raylib”, “reference” (and, later, “sdl-gpu”).
string Name { get; }Property Value
Methods
Create(ISurface?, GraphicsDeviceOptions)
Creates a device for surface (null = offscreen only, where the backend supports it).
IGraphicsDevice Create(ISurface? surface, GraphicsDeviceOptions options)Parameters
surface ISurface?
options GraphicsDeviceOptions
Returns
UnsupportedReason(ISurface?)
Null when Create can succeed for surface, otherwise why not.
string? UnsupportedReason(ISurface? surface)Parameters
surface ISurface?