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_Overlay
  • SDL_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