SDL_EGL_SetAttributeCallbacks(3)

SDL_EGL_SetAttributeCallbacks3

Sets the callbacks for defining custom eglattrib arrays for egl initialization.

Usage

#include "SDL3/SDL.h"

void SDL_EGL_SetAttributeCallbacks(SDL_EGLAttribArrayCallback platformAttribCallback, SDL_EGLIntArrayCallback surfaceAttribCallback, SDL_EGLIntArrayCallback contextAttribCallback, void *userdata);

Header file

Defined in SDL3/SDL_video.h

Overview

Callbacks that aren't needed can be set to NULL.

NOTE: These callback pointers will be reset after

SDL_GL_ResetAttributes .

Function parameters

platformAttribCallback

callback for attributes to pass to eglGetPlatformDisplay. May be NULL.

surfaceAttribCallback

callback for attributes to pass to eglCreateSurface. May be NULL.

contextAttribCallback

callback for attributes to pass to eglCreateContext. May be NULL.

userdata

a pointer that is passed to the callbacks.

Thread safety

This function should only be called on the main thread.

Availability

This function is available since SDL 3.2.0.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.