sdlGetDisplays function video
Get a list of currently connected displays.
\param count a pointer filled in with the number of displays returned, may be NULL. \returns a 0 terminated array of display instance IDs or NULL on failure; call SDL_GetError() for more information. This should be freed with SDL_free() when it is no longer needed.
\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_DisplayID * SDLCALL SDL_GetDisplays(int *count)
Implementation
Pointer<Uint32> sdlGetDisplays(Pointer<Int32> count) {
final sdlGetDisplaysLookupFunction = _libSdl
.lookupFunction<
Pointer<Uint32> Function(Pointer<Int32> count),
Pointer<Uint32> Function(Pointer<Int32> count)
>('SDL_GetDisplays');
return sdlGetDisplaysLookupFunction(count);
}