Skip to main content

Class GraphicsPresentationOptions

Namespace: VelloSharp.Avalonia.Core.Options
Assembly: VelloSharp.Avalonia.Core.dll

Presentation-related preferences shared by all render backends.

public sealed record GraphicsPresentationOptions : IEquatable<GraphicsPresentationOptions>

Inheritance​

object ← GraphicsPresentationOptions

Implements​

IEquatable<GraphicsPresentationOptions>

Inherited Members​

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors​

GraphicsPresentationOptions(PresentMode, RgbaColor, int)​

Presentation-related preferences shared by all render backends.

public GraphicsPresentationOptions(PresentMode PresentMode, RgbaColor ClearColor, int SwapChainFps = 60)

Parameters​

PresentMode PresentMode

Desired swapchain presentation mode.

ClearColor RgbaColor

Color used to clear the framebuffer before drawing.

SwapChainFps int

Target frames-per-second for throttled render loops.

Properties​

ClearColor​

Color used to clear the framebuffer before drawing.

public RgbaColor ClearColor { get; init; }

Property Value​

RgbaColor

Default​

Default presentation options: vsync and a transparent clear color.

public static GraphicsPresentationOptions Default { get; }

Property Value​

GraphicsPresentationOptions

PresentMode​

Desired swapchain presentation mode.

public PresentMode PresentMode { get; init; }

Property Value​

PresentMode

SwapChainFps​

Target frames-per-second for throttled render loops.

public int SwapChainFps { get; init; }

Property Value​

int