SDL_GetCameraName(3)
β¨ SDL_GetCameraName β¨
okay bestie, welcome to the SDL_GetCameraName(3) page, part of the SDL3 functions lineup π this one is short and sweet and it's literally just "hey what's this camera called" energy. no cap.
πΈ NAME πΈ
SDL_GetCameraName β get the human-readable device name for a camera. like, the cute little label the device gives itself. it's giving "Hi, I'm a webcam" π
π¦ SYNOPSIS π¦
#include <SDL3/SDL_camera.h>
const char * SDL_GetCameraName(SDL_CameraID instance_id);
π FUNCTION PARAMETERS π
instance_idβ the camera device instance ID. that's the number that tells SDL which camera you're asking about, so don't just make one up, use a real one you got from SDL, iykyk π
β RETURN VALUE β
Returns a human-readable device name, or NULL on failure π if you get NULL, call SDL_GetError() for more information. she will tell you what went wrong, fr fr.
π§ THREAD SAFETY π§
It is safe to call this function from any thread. yes bestie, ANY thread π go off, no locks needed, we love a chill function π
π AVAILABILITY π
This function is available since SDL 3.2.0. so if you're on anything older, sorry babe, no camera names for you π
π₯ SEE ALSO π₯
SDL_GetCameras(3)β the icon herself, go peep the full list of cameras π
and that's the whole page, you ate that π β¨
this was brought to you by Simple Directmedia Layer, SDL 3.4.18, dated SDL_GetCameraName(3) π«Ά love u, go name some cameras, periodt ππΈπ¦
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms