home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C++ Games Programming
/
CPPGAMES.ISO
/
fgl
/
fglight
/
expas.arj
/
TEMP
/
10-03.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1995-01-20
|
607b
|
32 lines
program main;
uses fgmain, fgbitmap, fgmisc;
const
triangle : array [1..15] of byte = ($55,$55,$40, $1A,$A9,$00, $06,$A4,$00,
$01,$90,$00, $00,$40,$00);
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_setcolor(7);
fg_rect(0,319,0,199);
fg_move(156,101);
fg_drwimage(triangle,3,5);
fg_waitkey;
fg_setmode(old_mode);
fg_reset;
end.