GXWaitDrawDone

C Specification

#include <revolution/gx.h>
void GXWaitDrawDone( void )

Arguments

None.

Return Values

None.

Description

This is a synchronization function. It will wait (stall) until the DrawDone command set by GXSetDrawDone has been executed. It means all graphics commands sent before this DrawDone command have executed and the last pixel has been written to the frame buffer. You may want to execute some non-graphics operations between executing GXSetDrawDone and GXWaitDrawDone. But if you simply want to wait and have nothing to execute, you can use GXDrawDone.

This function is normally used in immediate-mode, see GXSetCPUFifo. In multi-buffer mode, sending the done command is separated from polling the done status, see GXSetDrawDone and GXWaitDrawDone.

See Also

GXFlush

Revision History

03/01/2006 Initial version.