Function SDL_EGL_SetAttributeCallbacks
pub unsafe extern "C" fn SDL_EGL_SetAttributeCallbacks(
platformAttribCallback: Option<unsafe extern "C" fn(_: *mut c_void) -> *mut isize>,
surfaceAttribCallback: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: *mut c_void) -> *mut i32>,
contextAttribCallback: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: *mut c_void) -> *mut i32>,
userdata: *mut c_void,
)
Available on crate feature
dep_sdl3
only.Expand description
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
: 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.