Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (20 sloc) 0.531 kB
package SDLx::SFont;
use strict;
use warnings;
use SDL::Image;
use vars qw(@ISA @EXPORT @EXPORT_OK);
require Exporter;
require DynaLoader;
use SDL::Constants ':SDL::TTF';
our @ISA = qw(Exporter DynaLoader SDL::Surface);
use base 'Exporter';
our @EXPORT = ('SDL_TEXTWIDTH');
sub SDL_TEXTWIDTH {
return SDLx::SFont::TextWidth( join( '', @_ ) );
}
sub print_text { #print is a horrible name for this
my ( $surf, $x, $y, @text ) = @_;
SDLx::SFont::print_string( $surf, $x, $y, join( '', @text ) );
}
bootstrap SDLx::SFont;
1;
Jump to Line
Something went wrong with that request. Please try again.