El Jueves 19 Junio 1997 a las 19:52, Steven Dyck le dijo a All:
SD> question is is there any way to take a picture out of memory and put
SD> it on the screen? If you don't follow (and you know a little about
SD> q-basic) in q-basic, I would use bload. Also, is there any way to
Of course there's a way since that's the way it's almost always done
(memory->video) but the exact way will depend on which video mode you're
working in. The easiest to use is mode 13h of the VGA card (320x200 and 256
colors) but it's getting aged now... :)
I recommend getting some texts on VGA programming, they'll help you decide
what to do...
BTW, the way I do it in 320x200 is to create a pointer to the start of the
video ram and then access it like an array using the line:
video_ram[y_coordinate*320+x_coordinate]=color;
but this can be done like this in mode 13h because memory is accessed
linearly in it, using SVGA is quite a painstaking process.
Eric Londaits
wocky@usa.net
--- GoldED/2 2.50 UNREG
---------------
* Origin: Jabberwock Point (4:900/265)
|