SDL_HINT_WIN...CE_ICON_SMALL(3)
π SDL_HINT_WINDOWS_INTRESOURCE_ICON_SMALL π
okay bestie, welcome to the <SDL3/SDL_hints.h> corner of the universe, this is a page from the SDL3 FUNCTIONS manual and we're gonna get you fluent in it, no cap β¨
πΈ NAME πΈ
SDL_HINT_WINDOWS_INTRESOURCE_ICON_SMALL β it's a variable that lets you specify a custom icon resource id from an RC file, on the Windows platform. that's it, that's the whole job, and she does it flawlessly π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_hints.h>
#define SDL_HINT_WINDOWS_INTRESOURCE_ICON_SMALL "SDL_WINDOWS_INTRESOURCE_ICON_SMALL"
yes, the macro literally expands to that exact string, character for character, copy it, don't freestyle it π
π¦ DESCRIPTION π¦
so the vibe here is: this hint should be set before SDL is initialized. like, before. not during, not "ehh I'll do it later", not after. before. the window between "I should set that" and "SDL_Init" is your entire window of opportunity and it closes fast, so lock it in early fr fr π
π AVAILABILITY π
this hint has been available since SDL 3.2.0. if you're on anything older she simply does not exist, sorry babe π
and that's the whole page, you ate it, you're basically a Windows icon resource connoisseur now π
this lil cutie lives under Simple Directmedia Layer, in the SDL 3.4.18 era of the docs, and if you ever forget her name she's filed right there as SDL_HINT_WIN...CE_ICON_SMALL π«Ά go forth and set your hints early bestie πβ¨π
π¦ 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