SDL_GetCameraID3
Get the instance id of an opened camera.
Usage
#include "SDL3/SDL.h"
SDL_CameraID SDL_GetCameraID(SDL_Camera *camera);
Header file
Defined in SDL3/SDL_camera.h
Function parameters
- camera
-
an
SDL_Camera
to query.
Return value
( SDL_CameraID ) Returns the instance ID of the specified camera on success or 0 on failure; call SDL_GetError () for more information.
Thread safety
It is safe to call this function from any thread.