1
2=pod
3
4=head1 NAME
5
6SDL::VideoInfo - Video Target Information
7
8=head2 CATEGORY
9
10Core, Video, Structure
11
12=head1 SYNOPSIS
13
14	my $video_info = SDL::Video::get_video_info();
15
16VideoInfo is only accessible C<SDL::Video::get_video_info>. This module only provides getters to the struct C<SDL_VideoInfo>.
17
18
19=head1 DESCRIPTION
20
21This object is a read-only structure and is returned by C<SDL::Video::get_video_info>. It contains information on either the best available mode if called before C<SDL::Video::set_video_mode> or the current video mode if called after C<SDL::Video::set_video_mode>.
22
23=head1 METHODS
24
25
26=head2 hw_available
27
28	$video_info->hw_available() # 1 if Hardware Accelerated Surfaces available
29
30Is it possible to create hardware surfaces ?
31
32=head2 wm_available
33
34	$video_info->wm_available() # 1 if Window Manager available
35
36Is there a window manager available ?
37
38=head2 blit_hw
39
40	$video_info->blit_hw()
41
42Are hardware to hardware blits accelerated ?
43
44=head2 blit_hw_CC
45
46	$video_info->blit_hw_CC()
47
48Are hardware to hardware colorkey blits accelerated ?
49
50=head2 blit_hw_A
51
52	$video_info->blit_hw_A()
53
54Are hardware to hardware alpha blits accelerated ?
55
56=head2 blit_sw
57
58	$video_info->blit_sw()
59
60Are software to hardware blits accelerated ?
61
62=head2 blit_sw_CC
63
64	$video_info->blit_sw_CC()
65
66
67Are software to hardware colorkey blits accelerated ?
68
69=head2 blit_sw_A
70
71	$video_info->blit_sw_A()
72
73Are software to hardware alpha blits accelerated ?
74
75=head2 blit_fill
76
77	$video_info->blit_fill()
78
79Are color fills accelerated ?
80
81=head2 video_mem
82
83	my $video_mem = $video_info->video_mem();
84
85Total amount of video memory in Kilobytes, should be accessed only if hw_available == 1, otherwise it is equal to 0
86
87=head2 vfmt
88
89	my $vd_pixel_format = $video_info->vfmt();
90
91
92C<SDL::PixelFormat> of the video device
93
94=head2 current_w, current_h
95
96	$video_info->current_w();
97	$video_info->current_h();
98
99Width and height of the current video mode, or of the desktop mode if C<SDL_GetVideoInfo> was called before C<SDL::Video::set_video_mode> (available since SDL 1.2.10)
100
101=head1 SEE ALSO
102
103L<SDL::Video>, L<SDL::PixelFormat>
104
105=head1 AUTHORS
106
107See L<SDL/AUTHORS>.
108
109=cut
110