11 |
|
|
12 |
use Carp qw/confess/; |
use Carp qw/confess/; |
13 |
|
|
14 |
use base qw(Class::Accessor); |
use base qw(Class::Accessor Prefs); |
15 |
__PACKAGE__->mk_accessors(qw(debug scale show_mem mem_dump trace app)); |
__PACKAGE__->mk_accessors(qw(app)); |
16 |
|
|
17 |
|
=head1 NAME |
18 |
|
|
19 |
|
Screen - simulated 256*256 pixels monochrome screen using SDL |
20 |
|
|
21 |
=head2 open_screen |
=head2 open_screen |
22 |
|
|
29 |
sub open_screen { |
sub open_screen { |
30 |
my $self = shift; |
my $self = shift; |
31 |
|
|
32 |
|
$self->prefs; |
33 |
|
|
34 |
if ( ! $self->scale ) { |
if ( ! $self->scale ) { |
35 |
$self->scale( 1 ); |
$self->scale( 1 ); |
36 |
warn "using default unscaled display\n"; |
warn "using default unscaled display\n"; |
166 |
$app->sync; |
$app->sync; |
167 |
} |
} |
168 |
|
|
169 |
|
=head1 SEE ALSO |
170 |
|
|
171 |
|
L<Orao> is sample implementation using this module |
172 |
|
|
173 |
|
=head1 AUTHOR |
174 |
|
|
175 |
|
Dobrica Pavlinusic, C<< <dpavlin@rot13.org> >> |
176 |
|
|
177 |
|
=head1 COPYRIGHT & LICENSE |
178 |
|
|
179 |
|
Copyright 2007 Dobrica Pavlinusic, All Rights Reserved. |
180 |
|
|
181 |
|
This program is free software; you can redistribute it and/or modify it |
182 |
|
under the same terms as Perl itself. |
183 |
|
|
184 |
|
=cut |
185 |
1; |
1; |