qblitlib
A queue is a Blitz object, numbered from 0, that remembers the areas of
the bitmap that QBlit has drawn on. UnQueue then clears all of them
to colour 0, or copies them from another bitmap that holds the
background, and empties the queue. A typical game loop draws its moving
shapes with QBlit and removes them with UnQueue before drawing the
next frame.
Queue sets a queue up for a number of blits. QBlit draws like
Blit of the blitting library, in the mode set with QBlitMode.
As in the original, only runtime error checking notices that more blits are queued than the queue has room for (#423).
Based on the qblitlib guide by Acid Software.
Library number 148. It manages Queue objects, by default at most 10 (the compiler options set the maximum).
Commands
FlushQueue
Empties the queue without touching the bitmap, so that the next UnQueue does nothing.
Statement. Help text: Queue#
Arguments: .w
QBlit
Draws the shape into the used bitmap like Blit and remembers the area in the queue. With Excessonoff, the bitplanes beyond the shape’s depth are set or cleared under the shape, as with Blit.
Statement. Help text: Queue#,Shape#,X,Y[,Excessonoff]
2 forms:
.w, .w, .w, .w.w, .w, .w, .w, .w
QBlitMode
The blit mode of the following QBlit commands, as BlitMode; the start value is the cookie mode.
Statement. Help text: BLTCON0
Arguments: .w
Queue
Sets the queue up for at most Max Items blits; an old queue of the object is freed.
Statement. Help text: Queue#,Max Items
Arguments: .w, .w
UnQueue
Clears all areas remembered in the queue to colour 0, or copies them from the same place of BitMap#, and empties the queue.
Statement. Help text: Queue#[,BitMap#]
2 forms:
.w.w, .w