Sets the callbacks for defining custom EGLAttrib arrays for EGL initialization.
Defined in <SDL3/SDL_video.h>
void SDL_EGL_SetAttributeCallbacks(SDL_EGLAttribArrayCallback platformAttribCallback,
SDL_EGLIntArrayCallback surfaceAttribCallback,
SDL_EGLIntArrayCallback contextAttribCallback, void *userdata);| SDL_EGLAttribArrayCallback | platformAttribCallback | callback for attributes to pass to eglGetPlatformDisplay. May be NULL. |
| SDL_EGLIntArrayCallback | surfaceAttribCallback | callback for attributes to pass to eglCreateSurface. May be NULL. |
| SDL_EGLIntArrayCallback | contextAttribCallback | callback for attributes to pass to eglCreateContext. May be NULL. |
| void * | userdata | a pointer that is passed to the callbacks. |
Callbacks that aren't needed can be set to NULL.
NOTE: These callback pointers will be reset after SDL_GL_ResetAttributes.
Note that this is global state, and while you can use related functions from any thread, you should only use them to prepare a single GL context at a time.
It is safe to call this function from any thread.
This function is available since SDL 3.2.0.