SDL

 view release on metacpan or  search on metacpan

lib/pods/SDL/Video.pod  view on Meta::CPAN

Sets the "gamma function" for the display of each color component. Gamma controls the brightness/contrast of colors displayed on the screen. 
A gamma value of 1.0 is identity (i.e., no adjustment is made).

This function adjusts the gamma based on the "gamma function" parameter, you can directly specify lookup tables for gamma adjustment 
with SDL::set_gamma_ramp.

B<Note>: Not all display hardware is able to change gamma.

C<SDL::Video::set_gamma> returns C<-1> on error.

B<Warning>: Under Linux (X.org Gnome and Xfce), gamma settings affects the entire display (including the desktop)! 

Example:

 use SDL;
 use SDL::Video;
 use SDL::Surface;
 use SDL::Rect;
 use Time::HiRes qw( usleep );

 # the size of the window box or the screen resolution if fullscreen

lib/pods/SDL/Video.pod  view on Meta::CPAN

=head2	wm_set_caption

 SDL::Video::wm_set_caption( $title, $icon );

Sets the title-bar and icon name of the display window.

C<title> is a UTF-8 encoded null-terminated string which will serve as the window title (the text at the top of the window). The function 
does not change the string. You may free the string after the function returns.

C<icon> is a UTF-8 encoded null-terminated string which will serve as the iconified window title (the text which is displayed in the menu 
bar or desktop when the window is minimized). As with title this string may be freed after the function returns. 

Example:

 use SDL;
 use SDL::Video;
 use SDL::Surface;
 
 SDL::init(SDL_INIT_VIDEO);
 
 my $screen  = SDL::Video::set_video_mode(640, 480, 32, SDL_SWSURFACE);

lib/pods/SDL/VideoInfo.pod  view on Meta::CPAN

	my $vd_pixel_format = $video_info->vfmt();
		

C<SDL::PixelFormat> of the video device

=head2 current_w, current_h

	$video_info->current_w();
	$video_info->current_h();	

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)

=head1 SEE ALSO

L<SDL::Video>, L<SDL::PixelFormat>

=head1 AUTHORS

See L<SDL/AUTHORS>.

=cut



( run in 0.438 second using v1.01-cache-2.11-cpan-299005ec8e3 )