Skip to content

TSdlVideoDriver

A video driver.

Definition

Unit: Neslib.Sdl3.Video

type TSdlVideoDriver = record ... end;

Properties

Name Description
Count The number of video drivers compiled into SDL.
Current The name of the currently initialized video driver or an empty string if no driver has been initialized.
Drivers The built in video drivers.
Name The name of the video driver.

Property Descriptions

Count

The number of video drivers compiled into SDL.

class property Count: Integer read GetCount

Type: Integer

See Also

Remarks

This function should only be called on the main thread.


Current

The name of the currently initialized video driver or an empty string if no driver has been initialized.

The names of drivers are all simple, low-ASCII identifiers, like "cocoa", "x11" or "windows". These never have Unicode characters, and are not meant to be proper names.

class property Current: String read GetCurrent

Type: String

Remarks

This function should only be called on the main thread.


Drivers

The built in video drivers.

The video drivers are presented in the order in which they are normally checked during initialization.

class property Drivers[const AIndex: Integer]: TSdlVideoDriver read GetDriver; default

Type: TSdlVideoDriver

See Also

Remarks

This function should only be called on the main thread.


Name

The name of the video driver.

The names of drivers are all simple, low-ASCII identifiers, like "cocoa", "x11" or "windows". These never have Unicode characters, and are not meant to be proper names.

property Name: String read GetName

Type: String

Remarks

This function should only be called on the main thread.