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