Function SDL_EGL_GetWindowSurface

pub unsafe extern "C" fn SDL_EGL_GetWindowSurface(
    window: *mut SDL_Window,
) -> *mut c_void
Available on crate feature dep_sdl3 only.
Expand description

Get the EGL surface associated with the window.

§Parameters

  • window: the window to query.

§Return value

Returns the EGLSurface pointer associated with the window, or NULL on failure.

§Thread safety

This function should only be called on the main thread.

§Availability

This function is available since SDL 3.2.0.