PlatformAPI reference
Class RaylibDeviceFactory
Namespace: MicroEngine.Raylib
Assembly: MicroEngine.Raylib.dll
Guide: Backends and platforms
Factory of the tier-0 raylib device (“raylib”). raylib owns one window and one OpenGL context per process, so the device accepts only raylib’s own window: the surface whose native window is raylib’s, once raylib has opened it.
public sealed class RaylibDeviceFactory : IGraphicsBackendFactoryInheritance
Implements
Constructors
RaylibDeviceFactory()
public RaylibDeviceFactory()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?)
Null when Create can succeed for surface, otherwise why not.
public string? UnsupportedReason(ISurface? surface)Parameters
surface ISurface?