1 package SDL::VideoInfo;
6 our @ISA = qw(Exporter DynaLoader);
7 bootstrap SDL::VideoInfo;
17 SDL::VideoInfo - Video Target Information
21 my $video_info = SDL::Video::get_video_info();
23 VideoInfo is only accessible C<SDL::Video::get_video_info>. This module only provides getters to the struct C<SDL_VideoInfo>.
28 This 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>.
35 $video_info->hw_available() # 1 if Hardware Accelerated Surfaces available
37 Is it possible to create hardware surfaces ?
41 $video_info->wm_available() # 1 if Window Manager available
43 Is there a window manager available ?
47 $video_info->blit_hw()
49 Are hardware to hardware blits accelerated ?
53 $video_info->blit_hw_CC()
55 Are hardware to hardware colorkey blits accelerated ?
59 $video_info->blit_hw_A()
61 Are hardware to hardware alpha blits accelerated ?
65 $video_info->blit_sw()
67 Are software to hardware blits accelerated ?
71 $video_info->blit_sw_CC()
74 Are software to hardware colorkey blits accelerated ?
78 $video_info->blit_sw_A()
80 Are software to hardware alpha blits accelerated ?
84 $video_info->blit_fill()
86 Are color fills accelerated ?
90 my $video_mem = $video_info->video_mem();
92 Total amount of video memory in Kilobytes, should be accessed only if hw_available == 1, otherwise it is equal to 0
96 my $vd_pixel_format = $video_info->vfmt();
99 C<SDL::PixelFormat> of the video device
101 =head2 current_w, current_h
103 $video_info->current_w();
104 $video_info->current_h();
106 Width 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)
110 L<SDL::Video>, L<SDL::PixelFormat>