sdlEglGetCurrentDisplay function video

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.2.0.

extern SDL_DECLSPEC SDL_EGLDisplay SDLCALL SDL_EGL_GetCurrentDisplay(void)

Implementation

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