#include <revolution/gx.h> typedef void (*GXDrawDoneCallback)(void); GXDrawDoneCallback GXSetDrawDoneCallback( GXDrawDoneCallback cb );
| cb | The callback called when a drawing complete command appears in the graphics pipeline and all proceeding commands have been completed. |
|---|
Returns a pointer to a previously set callback function.
This function registers a callback that is called when a DrawDone command appears in the Graphics Processor. The DrawDone command is set with the GXSetDrawDone function. Note: By the time the callback is invoked, the Graphics Processor will already have resumed reading from the command FIFO, if there are any commands in it.
The callback will be invoked with interrupts disabled, so it is imperative that it return as quickly as possible.
You can also use the GXWaitDrawDone function to block progress in the application until this event occurs.
GXFlush, GXWaitDrawDone, GXSetDrawDone
2006/03/01 Initial version.
CONFIDENTIAL