sdlGetCameras function
Get a list of currently connected camera devices.
\param count a pointer filled in with the number of cameras returned, may be NULL. \returns a 0 terminated array of camera 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 It is safe to call this function from any thread.
\since This function is available since SDL 3.1.3.
\sa SDL_OpenCamera
extern SDL_DECLSPEC SDL_CameraID * SDLCALL SDL_GetCameras(int *count)
Implementation
Pointer<Uint32> sdlGetCameras(Pointer<Int32> count) {
final sdlGetCamerasLookupFunction = libSdl3.lookupFunction<
Pointer<Uint32> Function(Pointer<Int32> count),
Pointer<Uint32> Function(Pointer<Int32> count)>('SDL_GetCameras');
return sdlGetCamerasLookupFunction(count);
}