1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META name="GENERATOR" content="Microsoft FrontPage 5.0">
7<META http-equiv="Content-Style-Type" content="text/css">
8<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
9<title>GXGetLightPos</title>
10</head>
11
12<body>
13
14<h1 align="left">GXGetLightPos</h1>
15
16
17<h2>C Specification</h2>
18
19<dl>
20  <dd><pre><CODE>#include &lt;revolution/gx.h&gt;</CODE></pre></dd>
21  <dd><pre><CODE>void GXGetLightPos(
22    const <A href="../Structures/GXLightObj.html">GXLightObj</A>*   lt_obj,
23    f32*                x,
24    f32*                y,
25    f32*                z );</CODE></pre></dd>
26</dl><h2>Arguments</h2>
27<TABLE border="1" cellpadding="3" cellspacing="0.1">
28  <tr>
29<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>lt_obj</CODE></strong></em></TD>
30<TD width="520">Pointer to a light object</TD>
31    </tr>
32  <tr>
33<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>x</CODE></strong></em></TD>
34<TD width="520">Returns the X-coordinate of position</TD>
35    </tr>
36  <tr>
37<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>y</CODE></strong></em></TD>
38<TD width="520">Returns the Y-coordinate of position</TD>
39    </tr>
40  <tr>
41<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>z</CODE></strong></em></TD>
42<TD width="520">Returns the Z-coordinate of position</TD>
43    </tr>
44</TABLE>
45<h2>Return Values</h2>
46
47<p>None.</p>
48<H2>Description</H2>
49<P>This function returns the position of the light from a light object.&nbsp;The light position can be set using <a href="GXInitLightPos.html"><code>GXInitLightPos</code></a>, <a href="GXInitLightPosv.html"><code>GXInitLightPosv</code></a>, <a href="GXInitSpecularDir.html"><code>GXInitSpecularDir</code></a>, and <a href="GXInitSpecularDirv.html"><code>GXInitSpecularDirv</code></a>.</P>
50
51<h2>See Also</h2>
52
53<p><code><a href="GXInitLightPos.html">GXInitLightPos</a></code></p>
54<H2>Revision History</H2>
55<P>2006/03/01 Initial version.</P><hr>
56<P>CONFIDENTIAL</p>
57</BODY>
58</HTML>