1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 6.5.0.0 for Windows"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 8<TITLE>GXSetDrawDoneCallback</TITLE> 9</HEAD> 10<BODY> 11<H1 align="left">GXSetDrawDoneCallback</H1> 12<H2>C Specification</H2> 13<DL> 14 <DD> 15<PRE><CODE>#include <revolution/gx.h></CODE></PRE> 16 <DD> 17<PRE>typedef void (*GXDrawDoneCallback)(void); 18 19GXDrawDoneCallback GXSetDrawDoneCallback( GXDrawDoneCallback cb );</PRE> 20</DL> 21<H2>Arguments</H2> 22<DIV align="left"> 23<TABLE border="1" cellpadding="3" cellspacing="0.1"> 24 <TBODY> 25 <TR> 26<TD width="120" bgcolor="#ffffe8"><CODE><EM><STRONG>cb</STRONG></EM></CODE></TD> 27<TD width="520">The callback calls when a drawing complete command appears in the graphics pipeline and all proceeding commands have been completed.</TD> 28 </TR> 29 </TBODY> 30</TABLE> 31</DIV> 32<H2>Return Values</H2> 33<P>Returns a pointer to a previously set callback function.</P> 34<H2>Description</H2> 35<P>This function registers a callback that is called when a <EM>DrawDone</EM> command appears in the Graphics Processor. The <EM>DrawDone</EM> command is set by the <A href="GXSetDrawDone.html"><CODE>GXSetDrawDone</CODE></A> function. <BR><BR><B>Note:</B> 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.<BR></P> 36<P>The callback will be invoked with interrupts disabled, so it is imperative that it return as quickly as possible. </P> 37<P>You can also use <a href="GXWaitDrawDone.html"><code>GXWaitDrawDone</code></a> to block your application until this event occurs.</P> 38 39 40<H2>See Also</H2> 41<P><CODE><A href="GXFlush.html">GXFlush</A></CODE><BR> <CODE><A href="GXWaitDrawDone.html">GXWaitDrawDone</A><BR> <A href="GXSetDrawDone.html">GXSetDrawDone</A></CODE></P> 42<H2>Revision History</H2> 43<P>2006/03/01 Initial version.</P> 44<hr> 45<P>CONFIDENTIAL</p> 46</BODY> 47</HTML>