PageRenderTime 13ms CodeModel.GetById 6ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

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