SDL_LockYUVOverlay(3)

πŸ’– SDL_LockYUVOverlay πŸ’–

okay bestie, we're in the SDL API Reference today and this one is short but SO important, trust 🫢


✨ NAME ✨

SDL_LockYUVOverlay β€” lock an overlay, bestie. that's the whole vibe πŸ’…


🌸 SYNOPSIS 🌸

#include "SDL.h"

int SDL_LockYUVOverlay(SDL_Overlay *overlay);

πŸ¦‹ DESCRIPTION πŸ¦‹

So. Much the same as SDL_LockSurface, SDL_LockYUVOverlay locks the overlay for direct access to pixel data ✨

that's it. that's the tea. it's giving "let me in, i need to touch the pixels" 😭


πŸ’€ RETURN VALUE πŸ’€

  • returns 0 on success πŸŽ€
  • returns -1 on an error πŸ™ˆ

no cap, that's literally the whole contract.


πŸ‘‘ SEE ALSO πŸ‘‘

  • SDL_UnlockYUVOverlay
  • SDL_CreateYUVOverlay
  • SDL_Overlay

and that's the page, babe 🌈 this was written under the SDL banner, dated Tue 11 Sep 2001, 23:01 β€” yes, a whole legend from 2001 still serving main character energy ✨ lock responsibly, unlock always, and go touch some pixels πŸ’–πŸ¦‹πŸŽ€

πŸ“¦ where this page comes from