logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_GetCameraPosition - Get the position of the camera in relation to the system.

Availability

       This function is available since SDL 3.2.0.

Description

       Most platforms will report UNKNOWN, but mobile devices, like phones, can often make a distinction between
       cameras  on  the  front of the device (that points towards the user, for taking "selfies") and cameras on
       the back (for filming in the direction the user is facing).

Function Parameters

instance_id
              the camera device instance ID.

Name

       SDL_GetCameraPosition - Get the position of the camera in relation to the system.

Return Value

       Returns the position of the camera on the system hardware.

See Also

SDL_GetCameras(3)

Simple Directmedia Layer                           SDL 3.2.20                           SDL_GetCameraPosition(3)

Synopsis

#include<SDL3/SDL_camera.h>SDL_CameraPositionSDL_GetCameraPosition(SDL_CameraIDinstance_id);

Thread Safety

       It is safe to call this function from any thread.

See Also