/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

  1. =head1 NAME
  2. SDLx::SFont - Extension making fonts out of images and printing them
  3. =head1 CATEGORY
  4. Extension
  5. =head1 SYNOPSIS
  6. use SDLx::SFont;
  7. use SDLx::App;
  8. #Make a surface
  9. #Select a font
  10. my $d = SDLx::App->new( title => 'app', width => 200, height => 200, depth => 32 );
  11. my $font = SDLx::SFont->new('t/font.png');
  12. #print using $font
  13. SDLx::SFont::print_text( $d, 10, 10, 'Huh' );
  14. my $font2 = SDLx::SFont->new('t/font2.png');
  15. #print using font2
  16. SDLx::SFont::print_text( $d, 10, 10, 'Huh' );
  17. $font->use();
  18. #print using $font
  19. SDLx::SFont::print_text( $d, 10, 10, 'Huh' );
  20. #that is it folks ..
  21. =head1 DESCRIPTION
  22. a simpler print function for old SDL::SFont dependency on Frozen-Bubble and Pangzero.
  23. =head1 USAGE
  24. see synopsis
  25. =head1 BUGS
  26. You tell me! at sdlperl.ath.cx
  27. =head1 SUPPORT
  28. #sdl irc.perl.org
  29. =head1 AUTHORS
  30. See L<SDL/AUTHORS>.
  31. =head1 COPYRIGHT
  32. This program is free software; you can redistribute
  33. it and/or modify it under the same terms as Perl itself.
  34. The full text of the license can be found in the
  35. LICENSE file included with this module.
  36. =head1 SEE ALSO
  37. perl(1), SDL(2).
  38. =cut