SDL_HINT_PS2_GS_MODE(3)
π SDL_HINT_PS2_GS_MODE π
okay bestie, welcome to the SDL3 FUNCTIONS manual, and today's main character is a little hint called SDL_HINT_PS2_GS_MODE. she's the one who decides what video mode your PS2 console is serving. yes, literally the whole vibe of the screen. let's get into it π
β¨ NAME β¨
SDL_HINT_PS2_GS_MODE β a variable controlling the video mode of the console. that's it, that's her job, and she eats every time π«Ά
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_hints.h>
#define SDL_HINT_PS2_GS_MODE "SDL_PS2_GS_MODE"
so you pull in the header, and the hint itself is defined as the string "SDL_PS2_GS_MODE". copy it exactly, no cap, don't freestyle the spelling π₯
π¦ DESCRIPTION π¦
you can set this variable to the following values, and each one is giving a completely different energy:
""β Console-native. this is the default, so if you say nothing at all, this is what you get. the silent, unbothered icon π"NTSC"β 60hz region. smooth, fast, main character refresh rate β"PAL"β 50hz region. slower, cozier, still iconic in her own way πΈ
not me having to say this but: those values are exact."","NTSC","PAL". case matters, quotes matter, everything matters. periodt π
π AVAILABILITY π
this hint is available since SDL 3.4.0. so if you're on something older, she simply does not exist for you yet, and that's the vibe check π
and that's the whole page, bestie!! this came to you straight from the Simple Directmedia Layer crew, version SDL 3.4.18, under the title SDL_HINT_PS2_GS_MODE(3). go forth and set your video mode, ily, bye πβ¨ππ¦
π¦ 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