Article View: rec.games.programmer
Article #1012More on loading into vga video mem!
From: Corey D. Stinson
Date: Fri, 06 Nov 1992 15:53
Date: Fri, 06 Nov 1992 15:53
20 lines
973 bytes
973 bytes
Hi,
I have some more questions about loading directly into vga
video memory.
Someone posted that one correct method might be:
ifstream in("PICTURE.RAW");
unsigned char (far *)VideoMem[320][200];
(unsigned char far*)VideoMem = 0xA00000000L;
for (int x = 0; x < 320; x++) {
for (int y = 0; y < 200; y++) {
in >> (*VideoMem)[x][y];
or
in.get((*VideoMem)[x][y]);
This doesn't seem to work at all. Could someone provide
some advice? Thanx
Corey
Technical Details
Message-ID:
<BxAxHG.FMz@uxa.ecn.bgu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!utcsri!newsflash.concordia.ca!garrot.DMI.USherb.CA!uxa.ecn.bgu.edu!mucdsShow Full Headers
Complete Article Headers
Newsgroups: rec.games.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!utcsri!newsflash.concordia.ca!garrot.DMI.USherb.CA!uxa.ecn.bgu.edu!mucds From: mucds@uxa.ecn.bgu.edu (Corey D. Stinson) Subject: More on loading into vga video mem! Message-ID: <BxAxHG.FMz@uxa.ecn.bgu.edu> Organization: Educational Computing Network Date: Fri, 6 Nov 1992 15:53:39 GMT Lines: 20