Skip to content

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).

C#
public sealed class ReferenceGraphicsBackendFactory : IGraphicsBackendFactory

Inheritance

object ← ReferenceGraphicsBackendFactory

Implements

IGraphicsBackendFactory

Constructors

ReferenceGraphicsBackendFactory()

C#
public ReferenceGraphicsBackendFactory()

Properties

Name

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

C#
public string Name { get; }

Property Value

string

Methods

Create(ISurface?, GraphicsDeviceOptions)

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

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

Parameters

surface ISurface?

options GraphicsDeviceOptions

Returns

IGraphicsDevice

UnsupportedReason(ISurface?)

Always null: the reference device works with any surface and without one.

C#
public string? UnsupportedReason(ISurface? surface)

Parameters

surface ISurface?

Returns

string?