QAFlush
You can use theQAFlushfunction to flush a draw context.
#define QAFlush(drawContext) (drawContext)->flush (drawContext)
drawContext- A draw context.
DESCRIPTION
TheQAFlushfunction causes the drawing engine associated with the draw context specified by thedrawContextparameter to begin rendering all drawing commands that are queued in a buffer awaiting processing. QuickDraw 3D RAVE allows a drawing engine to buffer as many drawing commands as desired. Accordingly, the successful completion of a drawing command (such asQADrawPoint) does not guarantee that the specified object is visible on the screen. You can callQAFlushto have a drawing engine start processing queued commands. Note, however, thatQAFlushis not a blocking call--that is, the successful completion ofQAFlushdoes not guarantee that all buffered commands have been processed. CallingQAFlushguarantees only that all queued commands will eventually be processed.Typically, you should occasionally call
QAFlushto update the screen image during a lengthy set of rendering operations in a single-buffered draw context.QAFlushhas no visible effect when called on a double-buffered draw context, but it does initiate rendering to the back buffer.The
TQAFlushfunction returns a result code (of typeTQAError) indicating whether any errors have occurred since the previous call toQARenderStart. If all rendering commands completed successfully, the valuekQANoErris returned. If any other value is returned, you should assume that the rendered image is incorrect.SPECIAL CONSIDERATIONS
TheQARenderEndfunction automatically callsQAFlush.SEE ALSO
To ensure that all buffered commands have been processed, you can callQASyncinstead ofQAFlush.