SDL_GetCameraPosition

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

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).

extern (C) nothrow @nogc extern
SDL_GetCameraPosition

Parameters

instance_id SDL_CameraID

the camera device instance ID.

Return Value

The position of the camera on the system hardware.

Threadsafety: It is safe to call this function from any thread.

See Also

Meta