SDL_GetVideoSurface(3)

✨ NAME ✨

SDL_GetVideoSurface β€” returns a pointer to the current display surface. πŸ–₯οΈπŸ’–

okay so bestie, this is the SDL API Reference page for SDL_GetVideoSurface(3), and it's lowkey iconic. The name says it all: it gets the video surface. Periodt. πŸ’…


🌸 SYNOPSIS 🌸

the signature is giving:

#include "SDL.h"

SDL_Surface *SDL_GetVideoSurface(void);

πŸ¦‹ DESCRIPTION πŸ¦‹

This function returns a pointer to the current display surface. πŸͺ©

If SDL is doing format conversion on the display surface, this function returns the publicly visible surface, not the real video surface. πŸ‘€ no cap, that distinction matters.


πŸŽ€ SEE ALSO πŸŽ€

  • SDL_Surface

mwah πŸ’‹ that's the whole page. it's from SDL, dated Tue 11 Sep 2001, 23:01, and the page is SDL_GetVideoSurface(3). bye bestie, go slay 🫢✨

πŸ“¦ where this page comes from