Using PUT + GET in an offscreen buffer

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
WinfieldSmoker

Using PUT + GET in an offscreen buffer

Post by WinfieldSmoker »

I have been reading some graphic tutorials that describe using an offscreen buffer in normal memory. The contents of that buffer are copied to video memory so that pictures appear immediately and without flicker. My question is that , is it possible to use QBaisc's PUT + GET to write sprites to the buffer?. If this is possible could you supply a small demonstration code to illustrate this. Thnaking you all in advance
ASmoker
Z!re
Veteran
Posts: 887
Joined: Wed Aug 04, 2004 11:15 am

Post by Z!re »

Find SetVideoSeg and SuperPut

Two very good and useful routines, that allow you to use any QB gfx command on a buffer, including GET and PUT

Superput also allows you to put partially offscreen (normally, this generates an error)

Both routines allow you to go on using the standard commands: GET/PUT, but they don't work exactly the same anymore.

If I'm not misstaken, there are examples included.
I have left this dump.
User avatar
{Nathan}
Veteran
Posts: 1169
Joined: Thu Aug 19, 2004 6:08 pm
Location: The wetlands of central Ohio, USA
Contact:

Post by {Nathan} »

Are those routines in a lib? I have never heard of them...
Image
User avatar
Mitth'raw'nuruodo
Veteran
Posts: 839
Joined: Sat Jan 22, 2005 11:04 am
Location: Eastern Coast of US
Contact:

Post by Mitth'raw'nuruodo »

Ummm, Ummm, Ummm.... I though they were made by other QB programers, but they could be libraries.... :?
"But...It was so beutifully done"
Post Reply