home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C++ Games Programming
/
CPPGAMES.ISO
/
fgl
/
fglight
/
expas.arj
/
TEMP
/
10-23.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1995-01-20
|
695b
|
39 lines
program main;
uses fgmain, fgbitmap, fgmisc;
const
arrow : array [1..12] of byte = (6,1,9,2,2,9,1,19,7,2,8,1);
var
old_mode : integer;
begin
fg_initpm;
if (fg_testmode(4,1) = 0) then
begin
write('This program requires a 320 ');
writeln('x 200 CGA graphics mode.');
exit;
end;
old_mode := fg_getmode;
fg_setmode(4);
fg_setclip(0,15,0,199);
fg_setcolor(3);
fg_rect(0,319,0,199);
fg_move(10,10);
fg_drawmask(arrow,12,10);
fg_move(10,20);
fg_clipmask(arrow,12,10);
fg_move(10,30);
fg_revmask(arrow,12,10);
fg_move(10,40);
fg_flipmask(arrow,12,10);
fg_waitkey;
fg_setmode(old_mode);
fg_reset;
end.