GraphicsAPI reference
Class ReferenceGraphicsBackendFactory
Namespace: MicroEngine.Graphics.Devices
Assembly: MicroEngine.Graphics.dll
Guide: The graphics device
Factory of the CPU reference device (“reference”): offscreen, or over any surface (it never touches the window).
public sealed class ReferenceGraphicsBackendFactory : IGraphicsBackendFactoryInheritance
object ← ReferenceGraphicsBackendFactory
Implements
Constructors
ReferenceGraphicsBackendFactory()
public ReferenceGraphicsBackendFactory()Properties
Name
Backend name: “sdl-renderer”, “raylib”, “reference” (and, later, “sdl-gpu”).
public string Name { get; }Property Value
Methods
Create(ISurface?, GraphicsDeviceOptions)
Creates a device for surface (null = offscreen only, where the backend supports it).
public IGraphicsDevice Create(ISurface? surface, GraphicsDeviceOptions options)Parameters
surface ISurface?
options GraphicsDeviceOptions
Returns
UnsupportedReason(ISurface?)
Always null: the reference device works with any surface and without one.
public string? UnsupportedReason(ISurface? surface)Parameters
surface ISurface?