sdlEglGetWindowSurface function

Pointer<NativeType> sdlEglGetWindowSurface(
  1. Pointer<SdlWindow> window
)

Get the EGL surface associated with the window.

\param window the window to query. \returns the EGLSurface pointer associated with the window, or NULL on failure.

\threadsafety This function should only be called on the main thread.

\since This function is available since SDL 3.1.3.

extern SDL_DECLSPEC SDL_EGLSurface SDLCALL SDL_EGL_GetWindowSurface(SDL_Window *window)

Implementation

Pointer<NativeType> sdlEglGetWindowSurface(Pointer<SdlWindow> window) {
  final sdlEglGetWindowSurfaceLookupFunction = libSdl3.lookupFunction<
      Pointer<NativeType> Function(Pointer<SdlWindow> window),
      Pointer<NativeType> Function(
          Pointer<SdlWindow> window)>('SDL_EGL_GetWindowSurface');
  return sdlEglGetWindowSurfaceLookupFunction(window);
}