1SDL::VideoInfo(3)     User Contributed Perl Documentation    SDL::VideoInfo(3)
2
3
4

NAME

6       SDL::VideoInfo - Video Target Information
7
8   CATEGORY
9       Core, Video, Structure
10

SYNOPSIS

12               my $video_info = SDL::Video::get_video_info();
13
14       VideoInfo is only accessible "SDL::Video::get_video_info". This module
15       only provides getters to the struct "SDL_VideoInfo".
16

DESCRIPTION

18       This object is a read-only structure and is returned by
19       "SDL::Video::get_video_info". It contains information on either the
20       best available mode if called before "SDL::Video::set_video_mode" or
21       the current video mode if called after "SDL::Video::set_video_mode".
22

METHODS

24   hw_available
25               $video_info->hw_available() # 1 if Hardware Accelerated Surfaces available
26
27       Is it possible to create hardware surfaces ?
28
29   wm_available
30               $video_info->wm_available() # 1 if Window Manager available
31
32       Is there a window manager available ?
33
34   blit_hw
35               $video_info->blit_hw()
36
37       Are hardware to hardware blits accelerated ?
38
39   blit_hw_CC
40               $video_info->blit_hw_CC()
41
42       Are hardware to hardware colorkey blits accelerated ?
43
44   blit_hw_A
45               $video_info->blit_hw_A()
46
47       Are hardware to hardware alpha blits accelerated ?
48
49   blit_sw
50               $video_info->blit_sw()
51
52       Are software to hardware blits accelerated ?
53
54   blit_sw_CC
55               $video_info->blit_sw_CC()
56
57       Are software to hardware colorkey blits accelerated ?
58
59   blit_sw_A
60               $video_info->blit_sw_A()
61
62       Are software to hardware alpha blits accelerated ?
63
64   blit_fill
65               $video_info->blit_fill()
66
67       Are color fills accelerated ?
68
69   video_mem
70               my $video_mem = $video_info->video_mem();
71
72       Total amount of video memory in Kilobytes, should be accessed only if
73       hw_available == 1, otherwise it is equal to 0
74
75   vfmt
76               my $vd_pixel_format = $video_info->vfmt();
77
78       "SDL::PixelFormat" of the video device
79
80   current_w, current_h
81               $video_info->current_w();
82               $video_info->current_h();
83
84       Width and height of the current video mode, or of the desktop mode if
85       "SDL_GetVideoInfo" was called before "SDL::Video::set_video_mode"
86       (available since SDL 1.2.10)
87

SEE ALSO

89       SDL::Video, SDL::PixelFormat
90

AUTHORS

92       See "AUTHORS" in SDL.
93
94
95
96perl v5.36.0                      2023-03-10                 SDL::VideoInfo(3)
Impressum