DOKK / manpages / debian 13 / libsdl3-doc / SDL_GetCameraID.3.en
SDL_GetCameraID(3) SDL3 FUNCTIONS SDL_GetCameraID(3)

SDL_GetCameraID - Get the instance ID of an opened camera.

Defined in SDL3/SDL_camera.h

#include "SDL3/SDL.h"
SDL_CameraID SDL_GetCameraID(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.2.0.

(3), SDL_OpenCamera(3)

SDL 3.2.10 Simple Directmedia Layer