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