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<H2>C Specification</H2>
13<DL>
14  <DD>
15<PRE><CODE>#include &lt;revolution/gd.h&gt;</CODE></PRE>
16  <DD>
17<PRE>void GDSetCurrent( <a href="GDLObj.html">GDLObj</a>* dl );</PRE>
18</DL>
19<H2>Arguments</H2>
20<TABLE border="1" cellpadding="3" cellspacing="0.1">
21  <TBODY>
22    <TR>
23<TD width="120" bgcolor="#ffffe8"><EM><STRONG><CODE><STRONG><EM><CODE>dl</CODE></EM></STRONG></FONT></STRONG></EM></TD>
24<TD width="520">Pointer to a graphics display list object.</TD>
25    </TR>
26  </TBODY>
27</TABLE>
28<H2>Return Values</H2>
29<P>None.</P>
30<H2>Description</H2>
31<P>This function sets the specified <a href="GDLObj.html"><CODE>GDLObj</CODE></a> as the current structure. Until another <A href="GDLObj.html"><CODE>GDLObj</CODE></A> is set as current, all commands that operate on the current <A href="GDLObj.html"><CODE>GDLObj</CODE></A> will operate on <STRONG><EM><CODE>dl</CODE></EM></STRONG>. Note that all of the GD graphics commands operate on the current <a href="GDLObj.html"><CODE>GDLObj</CODE></a>.</P>
32<P>When you finish working with the current <a href="GDLObj.html"><CODE>GDLObj</CODE></a>, setting it to NULL 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>
33<H2>See Also</H2>
34<P><A href="GDGetCurrent.html"><CODE>GDGetCurrent</CODE></A><BR> <A href="GDIsCurrent.html"><CODE>GDIsCurrent</CODE></A></P>
35<H2>Revision History</H2>
36<P>03/01/2006 Initial version.</p>
37</BODY>
38</HTML>