AL_GET_MONITOR_REFRESH_RATE(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸŽ€ al_get_monitor_refresh_rate(3) πŸŽ€

okay so bestie, welcome to the Library Functions Manual ✨ β€” this one's a lil baby page but she's cute, let's get into it πŸ’…


🌸 NAME 🌸

al_get_monitor_refresh_rate β€” it's giving Allegro 5 API, and it's literally the function that tells you how fast a monitor is refreshing πŸ¦‹


✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

int al_get_monitor_refresh_rate(int adapter)

like, that's it. that's the whole vibe. one include, one function, one int in, one int out 🫢


πŸ’– DESCRIPTION πŸ’–

so what does she do? she returns the current refresh rate of a monitor attached to the display adapter. that's the whole thing. no cap. πŸ–₯️✨

you pass in the adapter, and boom β€” refresh rate. iconic.


⭐ SINCE ⭐

5.2.6 β€” she's been around a minute, respect her πŸ’œ

πŸ’€ heads up bestie: [Unstable API] β€” this is an experimental feature, and currently it only works on Windows. so like, don't @ her on Linux, she simply won't show up. lowkey tragic but fr fr, that's what the page says πŸ™ˆ

πŸ¦‹ SEE ALSO πŸ¦‹


anyway that's the whole page, short and sweet, she ate and left no crumbs πŸ“

β€” from the Allegro reference manual, no date given, so I'm not gonna invent one for you bestie 😭🫢

πŸ“¦ where this page comes from
  • arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms