sdlGetPrimaryDisplay function video
Return the primary display.
\returns the instance ID of the primary display on success or 0 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.
\sa SDL_GetDisplays
extern SDL_DECLSPEC SDL_DisplayID SDLCALL SDL_GetPrimaryDisplay(void)
Implementation
int sdlGetPrimaryDisplay() {
  final sdlGetPrimaryDisplayLookupFunction = _libSdl
      .lookupFunction<Uint32 Function(), int Function()>(
        'SDL_GetPrimaryDisplay',
      );
  return sdlGetPrimaryDisplayLookupFunction();
}