home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C++ Games Programming
/
CPPGAMES.ISO
/
fgl
/
fglight
/
expas.arj
/
TEMP
/
10-04.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1995-01-20
|
531b
|
29 lines
program main;
uses fgmain, fgbitmap, fgmisc;
const
triangle : array [1..10] of byte = ($FF,$80, $7F,$00, $3E,$00,
$1C,$00, $08,$00);
var
old_mode : integer;
begin
fg_initpm;
if (fg_testmode(6,1) = 0) then
begin
write('This program requires a ');
writeln('CGA graphics mode.');
exit;
end;
old_mode := fg_getmode;
fg_setmode(6);
fg_move(316,101);
fg_drwimage(triangle,2,5);
fg_waitkey;
fg_setmode(old_mode);
fg_reset;
end.