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="Microsoft FrontPage 5.0"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 8<TITLE>GXDrawDone</TITLE> 9</HEAD> 10<BODY> 11<H1 align="left">GXDrawDone</H1> 12 13<H2>Syntax</H2> 14<dl><dd><pre class="construction">#include <revolution/gx.h> 15 16void GXDrawDone( void ) 17</pre></dd></dl> 18 19<H2>Arguments</H2> 20<P>None.</P> 21 22<H2>Return Values</H2> 23<P>None.</P> 24 25<H2>Description</H2> 26<P>This is a synchronization function that calls the <a href="GXSetDrawDone.html"><code>GXSetDrawDone</code></a> and <a href="GXWaitDrawDone.html"><code>GXWaitDrawDone</code></a> 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.</P> 27<P>The net effect is that this function will send a <em>DrawDone</em> command to the Graphics Processor, run the <code><a href="GXFlush.html">GXFlush</a></code> function, and wait until it has been run. There is no need to explicitly call the <A href="../Management/GXFlush.html"><CODE>GXFlush</CODE></A> function after you have executed <CODE>GXDrawDone</CODE>.</P></P> 28<P>This function should only be used in immediate-mode, as the command processor will continue to execute commands from the current FIFO.</P> 29<P>This function may put the current thread to sleep. For precautions when calling similar functions, refer to <A href="../../os/Interrupt/intro.html">Interrupts and Callback Functions</A>.</P> 30 31<H2>See Also</H2> 32<P class="reference"> 33<A href="GXFlush.html">GXFlush</A><BR><A href="../../os/Interrupt/intro.html">Interrupts and Callback Functions</A> 34</P> 35 36<H2>Revision History</H2> 37<P> 382008/05/12 Mentioned that <CODE>GXFlush</CODE> is included with calls to other functions.<br>2007/09/25 Added information on the sleep status of threads.<br>2006/03/01 Initial version.<br> 39</P> 40 41<hr><p>CONFIDENTIAL</p></body> 42</HTML>