4 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
use strict;
use SDL;
use SDL::App;
use SDL::Event;
use SDL::TTFont;
use SDL::Color;
use SDL::Tool::Graphic;
my $app = SDL::App->new(
-title => 'myTE -> Developing...',
-width => 800,
-height => 600,
-depth => 16,
-flags => SDL_DOUBLEBUF | SDL_HWSURFACE | SDL_HWACCEL,
);
my $back = SDL::Surface->new( -name => 'c.jpg' );
SDL::Tool::Graphic::zoom($back, 1, 1, 1);
$back->blit(0, $app, 0);
while (1) {
$app->sync();
$app->delay(100);
}
1
2
3
SDL_Init 65535
ALSA lib pcm_dmix.c:819:(snd_pcm_dmix_open) unable to open slave
SDL::Tool::Graphic::zoom requires an SDL::Surface
SDL::Tool::Graphic->new()->zoom($back, 1, 1, 1);
SDL::Tool::Graphic::zoom(undef, $back, 1, 1, 1);
4 Einträge, 1 Seite |