pods::...eoInfo(3pm)

πŸ“¦ version 2.548, in opensuse-leap 16.0

🌸 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::Video
  • SDL::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