SDL_WM_ToggleFullScreen(3)

πŸ’– SDL_WM_ToggleFullScreen(3) πŸ’–

okay bestie, welcome to the SDL API Reference ✨ this one's a lil page from the SDL fam and it's literally about flipping your window between windowed and fullscreen like it's nothing. slay.


🌸 NAME 🌸

SDL_WM_ToggleFullScreen β€” toggles fullscreen mode πŸ¦‹


✨ SYNOPSIS ✨

#include "SDL.h"

int SDL_WM_ToggleFullScreen(SDL_Surface *surface);

πŸ’… DESCRIPTION πŸ’…

So the way this works is: it toggles your app between windowed mode and fullscreen mode, if supported. That "if supported" is doing a lot of heavy lifting ngl πŸ‘€

And like… the support situation is lowkey limited. X11 is the only target that's currently supported, fr fr. BeOS support? Experimental. That's it. That's the list. πŸ™ˆ

🫢 not me warning you that this is a very "depends on your platform" kinda function. the vibes are: check before you rely on it.

πŸŽ€ RETURN VALUE πŸŽ€

It returns 0 on failure or 1 on success. So like, 0 = πŸ’€, 1 = πŸ‘‘. Simple as that.


🌈 SEE ALSO 🌈

There is no SEE ALSO section on this page, bestie β€” it's a short one. But that's okay, she's iconic in her own tiny way ⭐


and that's the whole page!! short, sweet, main character energy, no cap πŸ’œ

mwah β€” this lil page comes to you from SDL, dated Tue 11 Sep 2001, 23:02. vintage! retro! a true elder icon of the manpage world πŸŽ€βœ¨ go toggle something, bestie πŸ¦‹

πŸ“¦ where this page comes from