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>GXGetLightDir</title>
10</head>
11
12<body>
13
14<h1 align="left">GXGetLightDir</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 GXGetLightDir(
22    const <A href="../Structures/GXLightObj.html">GXLightObj</A>*   lt_obj,
23    f32*                nx,
24    f32*                ny,
25    f32*                nz );</CODE></pre></dd>
26</dl>
27<h2>Arguments</h2>
28<TABLE border="1" cellpadding="3" cellspacing="0.1">
29  <tr>
30<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>lt_obj</CODE></strong></em></TD>
31<TD width="520">Pointer to a light object</TD>
32    </tr>
33  <tr>
34<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>nx</CODE></strong></em></TD>
35<TD width="520">Returns the X-coordinate of light normal</TD>
36    </tr>
37  <tr>
38<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>ny</CODE></strong></em></TD>
39<TD width="520">Returns the Y-coordinate of light normal</TD>
40    </tr>
41  <tr>
42<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>nz</CODE></strong></em></TD>
43<TD width="520">Returns the Z-coordinate of light normal</TD>
44    </tr>
45</TABLE>
46<h2>Return Values</h2>
47
48<p>None.</p>
49<H2>Description</H2>
50<P>This function returns the direction of the light from a light object.&nbsp;Use <a href="GXInitLightDir.html"><code>GXInitLightDir</code></a>, <a href="GXInitLightDirv.html"><code>GXInitLightDirv</code></a>, <a href="GXInitSpecularDir.html"><code>GXInitSpecularDir</code></a>, or <a href="GXInitSpecularDirv.html"><code>GXInitSpecularDirv</code></a> to set the light direction.</P>
51
52<h2>See Also</h2>
53
54<p><code><a href="GXInitLightDir.html">GXInitLightDir</a></code></p>
55<H2>Revision History</H2>
56<P>2006/03/01 Initial version.</P><hr>
57<P>CONFIDENTIAL</p>
58</BODY>
59</HTML>