NAME
SDLx::TTF - Extensions for printing text onto surfaces
SYNOPSIS
use SDLx::TTF;
use SDL::App;
#Make a surface
#Select a font
my $d = SDL::App->new( -title => 'app', -width => 200, -height => 200, -depth => 32 );
my $font = SDLx::TTF->new('t/font.png');
#print using $font
SDLx::TTF->print_text( $d, 10, 10, 'Huh' );
my $font2 = SDLx::TTF->new('t/font2.png');
#print using font2
SDLx::TTF->print_text( $d, 10, 10, 'Huh' );
$font->use();
#print using $font
SDLx::TTF->print_text( $d, 10, 10, 'Huh' );
#that is it folks ..
DESCRIPTION
a simpler print function for old SDL::SFont dependency on Frozen-Bubble and Pangzero.
Might actually be a usefull module some day ...
USAGE
see synopsis
BUGS
none
SUPPORT
#sdl irc.perl.org
AUTHOR
Kartik Thakore
CPAN ID: KTHAKORE
---
kthakore@cpan.org
http://sdl.perl.org
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.
SEE ALSO
perl(1), SDL(2).