SDL_EGL_SetAttributeCallbacks

Sets the callbacks for defining custom EGLAttrib arrays for EGL initialization.

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

NOTE: These callback pointers will be reset after SDL_GL_ResetAttributes.

Parameters

platformAttribCallback SDL_EGLAttribArrayCallback

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

surfaceAttribCallback SDL_EGLIntArrayCallback

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

contextAttribCallback SDL_EGLIntArrayCallback

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

userdata void*

a pointer that is passed to the callbacks.

Threadsafety: This function should only be called on the main thread.

Meta