pods::...eoInfo(3pm)
π NAME π
SDL::VideoInfo β Video Target Information β¨
Oh and quick heads up bestie, this page lives in the User Contributed Perl Documentation section of the manual (3pm), so you're in the right place π«Ά
πΈ CATEGORY πΈ
Core, Video, Structure
β SYNOPSIS β
my $video_info = SDL::Video::get_video_info();
okay so listen β VideoInfo is only accessible through SDL::Video::get_video_info. That's the one and only door in π. This module literally just hands you getters for the struct SDL_VideoInfo, and that's it, that's the whole vibe.
π¦ DESCRIPTION π¦
This object is a read-only structure (no cap, you cannot write to it, do not try) and it's returned by SDL::Video::get_video_info.
It's giving β¨informantβ¨ β here's what it tells you about:
- the best available mode, if you called it before
SDL::Video::set_video_mode, or - the current video mode, if you called it after
SDL::Video::set_video_mode.
Depending on where you are in your setup, the tea is different π
π METHODS π
π hw_available
$video_info->hw_available() # 1 if Hardware Accelerated Surfaces available
Is it possible to create hardware surfaces? π€ Returns 1 if hardware accelerated surfaces are available.
π wm_available
$video_info->wm_available() # 1 if Window Manager available
Is there a window manager available? πͺ Returns 1 if a window manager is available.
π blit_hw
$video_info->blit_hw()
Are hardware to hardware blits accelerated? β‘
π blit_hw_CC
$video_info->blit_hw_CC()
Are hardware to hardware colorkey blits accelerated? π¨
π blit_hw_A
$video_info->blit_hw_A()
Are hardware to hardware alpha blits accelerated? π
π blit_sw
$video_info->blit_sw()
Are software to hardware blits accelerated? π₯
π blit_sw_CC
$video_info->blit_sw_CC()
Are software to hardware colorkey blits accelerated? π¨
π blit_sw_A
$video_info->blit_sw_A()
Are software to hardware alpha blits accelerated? π
π blit_fill
$video_info->blit_fill()
Are color fills accelerated? ποΈ
π video_mem
my $video_mem = $video_info->video_mem();
Total amount of video memory in Kilobytes πΌ
bestie, important: only access this ifhw_available == 1π¨ otherwise it's just0and you're reading nothing. iykyk.
π vfmt
my $vd_pixel_format = $video_info->vfmt();
The SDL::PixelFormat of the video device πΌοΈ
π current_w, current_h
$video_info->current_w();
$video_info->current_h();
Width and height of the current video mode π β or, if SDL_GetVideoInfo was called before SDL::Video::set_video_mode, the width and height of the desktop mode instead. (available since SDL 1.2.10 ποΈ)
π SEE ALSO π
SDL::VideoSDL::PixelFormat
π AUTHORS π
See "AUTHORS" in SDL. π«‘
and that's the whole page, bestie π go forth and query your video info responsibly π§π
sign-off szn π β this glam little number is from perl v5.42.3, dated 2026-08-19, filed under pods::...eoInfo(3pm). slay. β¨
π¦ where this page comes from
- ubuntu stonking: libsdl-perl 2.548-6build1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms