Allegro::Display - Allegro Display object
use Allegro;
$al = Allegro->new();
$display = $al->Display(width => 640,
height => 480);
Allegro::Display provides an object used to access the full screen or
window bitmap. It is anagalous to Allegro's screen pointer.
This class contains methods to create and destroy a new window/screen, as well as methods to set the palette.
The Display class inherits from the Bitmap class. Therefore all Bitmap methods will work on a Display object.
$disp = $al->Display(width => 640,
height => 480,
v_width => 1024,
v_height => 768,
depth => 24,
mode => 'window');
The virtual width and height requested will not necessarily be what you requested. Use the v_width and v_height methods to check. Similarly, if you don't specify width and height, use width and height to find out the width and height.
auto, window, and
fullscreen. Defaults to auto.
$disp->shutdown;
$title = $disp->title;
$disp->title("Allegro Perl program");
$old_pal = $disp->palette; $disp->palette($new_pal);
Colin O'Leary <colin@mx3.org>
Copyright 2003 by Colin O'Leary. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The Allegro library is copyright its authors, and is giftware. See http://alleg.sf.net for more information.