pods::...eoInfo(3pm)
πΈ NAME πΈ
SDL::VideoInfo β Video Target Information.
This page is pods::...eoInfo(3pm), straight outta User Contributed Perl Documentation. Bestie, we're talking about SDL::VideoInfo, the video target info situation. π
π§ CATEGORY π§
- Core
- Video
- Structure
β¨ SYNOPSIS β¨
my $video_info = SDL::Video::get_video_info();
Okay so VideoInfo is only accessible through SDL::Video::get_video_info. This module only provides getters to the struct SDL_VideoInfo. That's the whole vibe. π
π DESCRIPTION π
This object is a read-only structure and is returned by SDL::Video::get_video_info. It contains information on either the best available mode if it's called before SDL::Video::set_video_mode, or the current video mode if it's called after SDL::Video::set_video_mode. No cap, that's the split. π¦
π¦ METHODS π¦
hw_available
$video_info->hw_available() # 1 if Hardware Accelerated Surfaces available
Can we create hardware surfaces at all? That's the question. π
wm_available
$video_info->wm_available() # 1 if Window Manager available
Is there a window manager 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, and it should be accessed only if hw_available == 1; otherwise it is equal to 0. Important caveat, bestie β don't ignore it. π«Ά
vfmt
my $vd_pixel_format = $video_info->vfmt();
The SDL::PixelFormat of the video device. Iconic. π
current_w, current_h
$video_info->current_w();
$video_info->current_h();
Width and height of the current video mode, or of the desktop mode if SDL_GetVideoInfo was called before SDL::Video::set_video_mode (available since SDL 1.2.10). β
π SEE ALSO π
SDL::VideoSDL::PixelFormat
π AUTHORS π
See AUTHORS in SDL.
Sign-off: perl v5.42.0, 2024-05-01, and the page handle pods::...eoInfo(3pm). Bye bestie, go check your video info π
π¦ where this page comes from
- opensuse-leap 16.0: perl-SDL 2.548-bp160.1.13 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: perl-SDL 2.548-bp160.1.13 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: perl-SDL 2.548-bp160.1.13 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: perl-SDL 2.548-bp160.1.13 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms