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
0on success π - returns
-1on an error π
no cap, that's literally the whole contract.
π SEE ALSO π
SDL_UnlockYUVOverlaySDL_CreateYUVOverlaySDL_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
- debian bookworm: libsdl1.2-dev 1.2.15+dfsg2-8 Β· LGPL-2.1-or-later
- nixos 26.05: SDL_sixel 0-unstable-2016-02-06
- nixpkgs unstable: SDL_sixel 0-unstable-2016-02-06
- ubuntu jammy: libsdl1.2-dev 1.2.15+dfsg2-6 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms