Get the instance ID of an opened camera.
Defined in <SDL3/SDL_camera.h>
SDL_CameraID SDL_GetCameraID(SDL_Camera *camera);
SDL_Camera * | camera | an SDL_Camera to query. |
(SDL_CameraID) Returns the instance ID of the specified camera on success or 0 on failure; call SDL_GetError() for more information.
It is safe to call this function from any thread.
This function is available since SDL 3.1.3.