Skip to content

PlatformAPI reference

Class SdlRendererBackendFactory

Namespace: MicroEngine.Sdl
Assembly: MicroEngine.Sdl.dll
Guide: Backends and platforms

Factory of the tier-0 SDL_Renderer backend (“sdl-renderer”).

C#
public sealed class SdlRendererBackendFactory : IGraphicsBackendFactory

Inheritance

object ← SdlRendererBackendFactory

Implements

IGraphicsBackendFactory

Constructors

SdlRendererBackendFactory()

C#
public SdlRendererBackendFactory()

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

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

C#
public string? UnsupportedReason(ISurface? surface)

Parameters

surface ISurface?

Returns

string?