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 http-equiv="Content-Style-Type" content="text/css"> 6<META name="GENERATOR" content="Microsoft FrontPage 5.0"> 7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 8<TITLE>GDSetCurrent</TITLE> 9</HEAD> 10<BODY> 11<H1 align="left">GDSetCurrent</H1> 12 13<H2>Syntax</H2> 14<dl><dd><pre class="construction"> 15#include <revolution/gd.h> 16 17void GDSetCurrent( <A href="GDLObj.html">GDLObj</A>* dl ); 18</pre></dd></dl> 19 20<H2>Arguments</H2> 21<TABLE class="arguments" border="1" > 22 <TBODY> 23 <TR> 24<TH><STRONG><EM><CODE>dl</CODE></EM></STRONG></TH> 25<TD>Pointer to a graphics display list object.</TD> 26 </TR> 27 </TBODY> 28</TABLE> 29 30<H2>Return Values</H2> 31<P>None.</P> 32 33<H2>Description</H2> 34<P>This function sets the specified <a href="GDLObj.html"><CODE>GDLObj</CODE></a> as the current structure. All the commands which act upon the current <a href="GDLObj.html"><CODE>GDLObj</CODE></a> will now act upon <SPAN class="argument">dl</SPAN> until a different <A href="GDLObj.html"><CODE>GDLObj</CODE></A> is set as current. Note that all of the GD graphics commands operate on the current <a href="GDLObj.html"><CODE>GDLObj</CODE></a>.</P> 35<P>When you finish working with the current <a href="GDLObj.html"><CODE>GDLObj</CODE></a>, setting <CODE>NULL</CODE> to it is recommended. This will help avoid potential problems and aid in debugging if you forget to set a different structure as the current <a href="GDLObj.html"><CODE>GDLObj</CODE></a>.</P> 36 37<H2>See Also</H2> 38<P class="reference"> 39<A href="GDGetCurrent.html">GDGetCurrent</A>, 40<A href="GDIsCurrent.html">GDIsCurrent</A> 41</P> 42 43<H2>Revision History</H2> 44<P> 452006/03/01 Initial version.<BR> 46</p> 47 48<hr><p>CONFIDENTIAL</p></body> 49</HTML>