Skip to content

TSdlEglIntArrayCallback

EGL surface/context attribute initialization callback.

This is called when SDL is attempting to create an EGL surface, to let the app add extra attributes to its eglCreateWindowSurface or eglCreateContext calls.

For convenience, the TSdlEglDisplay and TSdlEglConfig to use are provided to the callback.

The callback should return an EGL attribute. If this function 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. The EGL display to be used.The EGL config to be used.An array of attributes.

Definition

Unit: Neslib.Sdl3.Video

type TSdlEglIntArrayCallback = function(const ADisplay: TSdlEglDisplay; 
  const AConfig: TSdlEglConfig): TArray<TSdlEglInt> of object

Parameters

ADisplay: TSdlEglDisplay

AConfig: TSdlEglConfig

Returns

TArray<TSdlEglInt>