sdlEglGetCurrentDisplay function

Pointer<NativeType> sdlEglGetCurrentDisplay()

Get the currently active EGL display.

\returns the currently active EGL display or NULL on failure; call SDL_GetError() for more information.

\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_EGLDisplay SDLCALL SDL_EGL_GetCurrentDisplay(void)

Implementation

Pointer<NativeType> sdlEglGetCurrentDisplay() {
  final sdlEglGetCurrentDisplayLookupFunction = libSdl3.lookupFunction<
      Pointer<NativeType> Function(),
      Pointer<NativeType> Function()>('SDL_EGL_GetCurrentDisplay');
  return sdlEglGetCurrentDisplayLookupFunction();
}