Skip to content

TSdlEglAttribArrayCallback

EGL platform attribute initialization callback.

This is called when SDL is attempting to create an EGL context, to let the app add extra attributes to its eglGetPlatformDisplay call.

The callback should return an array of EGL attributes array. If this method returns nil, the TSdlWindow.Create process will fail gracefully.

The arrays returned by each callback will be appended to the existing attribute arrays defined by SDL.

Definition

Unit: Neslib.Sdl3.Video

type TSdlEglAttribArrayCallback = function: TArray<TSdlEglAttrib> of object

Returns

TArray<TSdlEglAttrib>: An array of attributes.

See Also