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
13<H2>Syntax</H2>
14<dl><dd><pre class="construction">
15#include &lt;revolution/gx.h&gt;
16
17typedef void (*GXDrawDoneCallback)(void);
18
19GXDrawDoneCallback GXSetDrawDoneCallback( GXDrawDoneCallback cb );
20</pre></dd></dl>
21
22<H2>Arguments</H2>
23<TABLE class="arguments" border="1" >
24  <TBODY>
25    <TR>
26<TH>cb</TH>
27<TD>The callback called 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
32<H2>Return Values</H2>
33<P>Returns a pointer to a previously set callback function.</P>
34
35<H2>Description</H2>
36<P>This function registers a callback that is called when a <EM>DrawDone</EM> command appears in the Graphics Processor.&nbsp;The <EM>DrawDone</EM> command is set with the <A href="GXSetDrawDone.html"><CODE>GXSetDrawDone</CODE></A> function.&nbsp;<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>
37<P>The callback will be invoked with interrupts disabled, so it is imperative that it return as quickly as possible.&nbsp;</P>
38<P>You can also use the <A href="GXWaitDrawDone.html"><CODE>GXWaitDrawDone</CODE></A> function to block progress in the application until this event occurs.</P>
39
40<H2>See Also</H2>
41<P class="reference">
42<A href="GXFlush.html">GXFlush</A>,
43<A href="GXWaitDrawDone.html">GXWaitDrawDone</A>,
44<A href="GXSetDrawDone.html">GXSetDrawDone</A>
45</P>
46
47<H2>Revision History</H2>
48<P>
492006/03/01 Initial version.<br>
50</P>
51
52<hr><p>CONFIDENTIAL</p></body>
53</HTML>