5 SDL::VideoInfo - Video Target Information
9 my $video_info = SDL::Video::get_video_info();
11 VideoInfo is only accessible C<SDL::Video::get_video_info>. This module only provides getters to the struct C<SDL_VideoInfo>.
16 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>.
23 $video_info->hw_available() # 1 if Hardware Accelerated Surfaces available
25 Is it possible to create hardware surfaces ?
29 $video_info->wm_available() # 1 if Window Manager available
31 Is there a window manager available ?
35 $video_info->blit_hw()
37 Are hardware to hardware blits accelerated ?
41 $video_info->blit_hw_CC()
43 Are hardware to hardware colorkey blits accelerated ?
47 $video_info->blit_hw_A()
49 Are hardware to hardware alpha blits accelerated ?
53 $video_info->blit_sw()
55 Are software to hardware blits accelerated ?
59 $video_info->blit_sw_CC()
62 Are software to hardware colorkey blits accelerated ?
66 $video_info->blit_sw_A()
68 Are software to hardware alpha blits accelerated ?
72 $video_info->blit_fill()
74 Are color fills accelerated ?
78 my $video_mem = $video_info->video_mem();
80 Total amount of video memory in Kilobytes, should be accessed only if hw_available == 1, otherwise it is equal to 0
84 my $vd_pixel_format = $video_info->vfmt();
87 C<SDL::PixelFormat> of the video device
89 =head2 current_w, current_h
91 $video_info->current_w();
92 $video_info->current_h();
94 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)
98 L<SDL::Video>, L<SDL::PixelFormat>