/lib/pods/SDLx/SFont.pod
http://github.com/PerlGameDev/SDL · Unknown · 73 lines · 38 code · 35 blank · 0 comment · 0 complexity · 6dfd6d1816ea7175922cab68b1329132 MD5 · raw file
- =head1 NAME
- SDLx::SFont - Extension making fonts out of images and printing them
- =head1 CATEGORY
- Extension
- =head1 SYNOPSIS
- use SDLx::SFont;
- use SDLx::App;
- #Make a surface
- #Select a font
- my $d = SDLx::App->new( title => 'app', width => 200, height => 200, depth => 32 );
- my $font = SDLx::SFont->new('t/font.png');
-
- #print using $font
-
- SDLx::SFont::print_text( $d, 10, 10, 'Huh' );
- my $font2 = SDLx::SFont->new('t/font2.png');
- #print using font2
- SDLx::SFont::print_text( $d, 10, 10, 'Huh' );
- $font->use();
- #print using $font
-
- SDLx::SFont::print_text( $d, 10, 10, 'Huh' );
- #that is it folks ..
- =head1 DESCRIPTION
- a simpler print function for old SDL::SFont dependency on Frozen-Bubble and Pangzero.
- =head1 USAGE
- see synopsis
- =head1 BUGS
- You tell me! at sdlperl.ath.cx
- =head1 SUPPORT
- #sdl irc.perl.org
- =head1 AUTHORS
- See L<SDL/AUTHORS>.
- =head1 COPYRIGHT
- This program is free software; you can redistribute
- it and/or modify it under the same terms as Perl itself.
- The full text of the license can be found in the
- LICENSE file included with this module.
- =head1 SEE ALSO
- perl(1), SDL(2).
- =cut