SDL_DisplayYUVOverlay(3)
π SDL_DisplayYUVOverlay(3) π
okay bestie, welcome to the SDL API Reference β¨ this one's short and sweet and honestly it's giving "small function, big main character energy" π
πΈ NAME πΈ
SDL_DisplayYUVOverlay β blit the overlay to the display π¦
β¨ SYNOPSIS β¨
#include "SDL.h"
int SDL_DisplayYUVOverlay(SDL_Overlay *overlay, SDL_Rect *dstrect);
π DESCRIPTION π
So like, this one blits the overlay to the surface that was specified back when the overlay was created. no cap. π«Ά
The SDL_Rect structure, dstrect, is the one telling everyone the position and the size of the destination. π
And here's the fun part: if dstrect is larger or smaller than the overlay, then the overlay gets scaled to fit β and this is optimized for 2x scaling, which is lowkey iconic of it π₯
π RETURN VALUES π
Returns 0 on success β¨ that's it, that's the whole vibe check.
π SEE ALSO π
SDL_OverlaySDL_CreateYUVOverlay
iykyk, go read those next bestie, they're the prequel π
mwah π that's the whole page β brought to you by the SDL girlies, dated Tue 11 Sep 2001, 23:01. periodt. π πΈ
π¦ 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