#include <revolution/gx.h> void GXDrawDone( void )
None.
None.
This is a synchronization function that calls the GXSetDrawDone and GXWaitDrawDone functions in succession. As a result, it will wait (stall) until all graphics commands have executed and the last pixel is written to the frame buffer. This function flushes the write-gather FIFO in the CPU to make sure that all commands are sent to the graphics processor before the stall.
The net effect is that this function will send a DrawDone command to the Graphics Processor, run the GXFlush function, and wait until it has been run. There is no need to explicitly call the GXFlush function after you have executed GXDrawDone.
This function should only be used in immediate-mode, as the command processor will continue to execute commands from the current FIFO.
This function sometimes puts the current thread to sleep, so it cannot be called from callback functions. For precautions when calling similar functions, refer to Interrupts and Callback Functions.
GXFlush
Interrupts and Callback Functions
2008/05/12 Mentioned that GXFlush is included with calls to other functions.
2007/09/25 Added information on the sleep status of threads.
2006/03/01 Initial version.
CONFIDENTIAL