8 Einträge, 1 Seite |
1
2
my $surface = SDL::Surface->new(-name => 'image.png');
SDL::Tool::Graphic::zoom($surface,0.5,0.5);
SDL::Tool::Graphic::zoom requires an SDL::Surface
1
2
my $surface = SDL::Surface->new(-name => 'image.png');
SDL::Tool::Graphic::zoom(undef,$surface,0.5,0.5);
QuoteThis would normally be an instance method, but the way it is written it does not require it to be called on an instance. As such, passing the perl value undef as a placeholder for the first argument allows it to be called as a class method.
8 Einträge, 1 Seite |