.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "pods::SDL::VideoInfo 3pm" .TH pods::SDL::VideoInfo 3pm 2024-01-10 "perl v5.38.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME SDL::VideoInfo \- Video Target Information .SS CATEGORY .IX Subsection "CATEGORY" Core, Video, Structure .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 1 \& my $video_info = SDL::Video::get_video_info(); .Ve .PP VideoInfo is only accessible \f(CW\*(C`SDL::Video::get_video_info\*(C'\fR. This module only provides getters to the struct \f(CW\*(C`SDL_VideoInfo\*(C'\fR. .SH DESCRIPTION .IX Header "DESCRIPTION" This object is a read-only structure and is returned by \f(CW\*(C`SDL::Video::get_video_info\*(C'\fR. It contains information on either the best available mode if called before \f(CW\*(C`SDL::Video::set_video_mode\*(C'\fR or the current video mode if called after \f(CW\*(C`SDL::Video::set_video_mode\*(C'\fR. .SH METHODS .IX Header "METHODS" .SS hw_available .IX Subsection "hw_available" .Vb 1 \& $video_info\->hw_available() # 1 if Hardware Accelerated Surfaces available .Ve .PP Is it possible to create hardware surfaces ? .SS wm_available .IX Subsection "wm_available" .Vb 1 \& $video_info\->wm_available() # 1 if Window Manager available .Ve .PP Is there a window manager available ? .SS blit_hw .IX Subsection "blit_hw" .Vb 1 \& $video_info\->blit_hw() .Ve .PP Are hardware to hardware blits accelerated ? .SS blit_hw_CC .IX Subsection "blit_hw_CC" .Vb 1 \& $video_info\->blit_hw_CC() .Ve .PP Are hardware to hardware colorkey blits accelerated ? .SS blit_hw_A .IX Subsection "blit_hw_A" .Vb 1 \& $video_info\->blit_hw_A() .Ve .PP Are hardware to hardware alpha blits accelerated ? .SS blit_sw .IX Subsection "blit_sw" .Vb 1 \& $video_info\->blit_sw() .Ve .PP Are software to hardware blits accelerated ? .SS blit_sw_CC .IX Subsection "blit_sw_CC" .Vb 1 \& $video_info\->blit_sw_CC() .Ve .PP Are software to hardware colorkey blits accelerated ? .SS blit_sw_A .IX Subsection "blit_sw_A" .Vb 1 \& $video_info\->blit_sw_A() .Ve .PP Are software to hardware alpha blits accelerated ? .SS blit_fill .IX Subsection "blit_fill" .Vb 1 \& $video_info\->blit_fill() .Ve .PP Are color fills accelerated ? .SS video_mem .IX Subsection "video_mem" .Vb 1 \& my $video_mem = $video_info\->video_mem(); .Ve .PP Total amount of video memory in Kilobytes, should be accessed only if hw_available == 1, otherwise it is equal to 0 .SS vfmt .IX Subsection "vfmt" .Vb 1 \& my $vd_pixel_format = $video_info\->vfmt(); .Ve .PP \&\f(CW\*(C`SDL::PixelFormat\*(C'\fR of the video device .SS "current_w, current_h" .IX Subsection "current_w, current_h" .Vb 2 \& $video_info\->current_w(); \& $video_info\->current_h(); .Ve .PP Width and height of the current video mode, or of the desktop mode if \f(CW\*(C`SDL_GetVideoInfo\*(C'\fR was called before \f(CW\*(C`SDL::Video::set_video_mode\*(C'\fR (available since SDL 1.2.10) .SH "SEE ALSO" .IX Header "SEE ALSO" SDL::Video, SDL::PixelFormat .SH AUTHORS .IX Header "AUTHORS" See "AUTHORS" in SDL.