SDL_HINT_WINDOWS_ERASE_BACKGROUND_MODE(3)
π SDL_HINT_WINDOWS_ERASE_BACKGROUND_MODE(3) π
okay bestie, pull up a chair, because we're talking about the manual page for SDL_HINT_WINDOWS_ERASE_BACKGROUND_MODE(3) and honestly? it's giving subtle but powerful. π¦
β¨ NAME β¨
SDL_HINT_WINDOWS_ERASE_BACKGROUND_MODE β a variable that controls whether SDL clears the window contents when it gets the WM_ERASEBKGND message. that's the whole vibe. π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_hints.h>
#define SDL_HINT_WINDOWS_ERASE_BACKGROUND_MODE "SDL_WINDOWS_ERASE_BACKGROUND_MODE"
yeah, that's the include and that's the string name. copy it exactly, no improvising, no cap. π
π«Ά DESCRIPTION π«Ά
so the variable can be set to these values, and you have options, main character:
"0"/"never"β never clear the window. like, ever. it said what it said. π"1"/"initial"β clear the window when the firstWM_ERASEBKGNDevent fires. this is the default β"2"/"always"β clear the window on every singleWM_ERASEBKGNDevent. every one. no skips. π₯
lowkey important: this hint should be set before creating a window. set it after and it's not gonna hit the same, fr fr. π
π AVAILABILITY π
this hint has been available since SDL 3.2.0. iconic behavior, honestly. π
and that's the page, bestie!! written by Simple Directmedia Layer, running on SDL 3.4.18, straight from the SDL_HINT_WINDOWS_ERASE_BACKGROUND_MODE(3) manual. go forth and erase those backgrounds (or don't, it's literally a setting) π§πβ¨
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms