Skip to content

TSdlDisplayMode

The record that defines a display mode.

Definition

Unit: Neslib.Sdl3.Video

type TSdlDisplayMode = record ... end;

See Also

Remarks

This struct is available since SDL 3.2.0.

Properties

Name Description
DisplayID The display this mode is associated with
Format Pixel format
H Height
PixelDensity Scale converting size to pixels (e.g. a 1920x1080 mode with 2.0 scale would have 3840x2160 pixels)
RefreshRate Refresh rate (or 0.0f for unspecified)
RefreshRateDenominator Precise refresh rate denominator
RefreshRateNumerator Precise refresh rate numerator (or 0 for unspecified)
W Width

Property Descriptions

DisplayID

The display this mode is associated with

property DisplayID: TSdlDisplayID read FHandle.displayID

Type: TSdlDisplayID


Format

Pixel format

property Format: TSdlPixelFormat read GetFormat

Type: TSdlPixelFormat


H

Height

property H: Integer read FHandle.h

Type: Integer


PixelDensity

Scale converting size to pixels (e.g. a 1920x1080 mode with 2.0 scale would have 3840x2160 pixels)

property PixelDensity: Single read FHandle.pixel_density

Type: Single


RefreshRate

Refresh rate (or 0.0f for unspecified)

property RefreshRate: Single read FHandle.refresh_rate

Type: Single


RefreshRateDenominator

Precise refresh rate denominator

property RefreshRateDenominator: Integer read FHandle.refresh_rate_denominator

Type: Integer


RefreshRateNumerator

Precise refresh rate numerator (or 0 for unspecified)

property RefreshRateNumerator: Integer read FHandle.refresh_rate_numerator

Type: Integer


W

Width

property W: Integer read FHandle.w

Type: Integer