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>GXGetLightAttnA</title>
10</head>
11
12<body>
13
14<h1 align="left">GXGetLightAttnA</h1>
15
16<h2>C Specification</h2>
17
18<dl>
19  <dd><pre><CODE>#include &lt;revolution/gx.h&gt;</CODE></pre></dd>
20  <dd><pre><CODE>void GXGetLightAttnA(
21    const <A href="../Structures/GXLightObj.html">GXLightObj</A>*   lt_obj,
22    f32*                a0,
23    f32*                a1,
24    f32*                a2 );</CODE></pre>
25  </dd>
26</dl>
27
28<h2>Arguments</h2>
29<TABLE border="1" cellpadding="3" cellspacing="0.1">
30  <tr>
31<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>lt_obj</CODE></strong></em></TD>
32<TD width="520">Pointer to a light object</TD>
33    </tr>
34  <tr>
35<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>a0</CODE></strong></em></TD>
36<TD width="520">Returns the angle attenuation coefficient 0</TD>
37    </tr>
38  <tr>
39<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>a1</CODE></strong></em></TD>
40<TD width="520">Returns the angle attenuation coefficient 1</TD>
41    </tr>
42  <tr>
43<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>a2</CODE></strong></em></TD>
44<TD width="520">Returns the angle attenuation coefficient 2</TD>
45    </tr>
46</TABLE>
47<h2>Return Values</h2>
48
49<p>None.</p>
50<H2>Description</H2>
51<P>This function returns coefficients used in the lighting attenuation calculation for a given light object.&nbsp;The memory for the light object must be allocated by the application.&nbsp;The parameters <code><em><strong>a0</strong></em></code>, <code><em><strong>a1</strong></em></code>, and <code><em><strong>a2</strong></em></code> are used for angular (spotlight) attenuation. These parameters may be set by <a href="GXInitLightAttn.html"><code>GXInitLightAttn</code></a>, <a href="GXInitLightAttnA.html"><code>GXInitLightAttnA</code></a>, <a href="GXInitLightSpot.html"><code>GXInitLightSpot</code></a>, and <a href="GXInitLightShininess.html"><code>GXInitLightShininess</code></a>.</P>
52
53<h2>See Also</h2>
54
55<p><code><a href="GXInitLightAttn.html">GXInitLightAttn</a><br> <a href="GXInitLightAttnA.html">GXInitLightAttnA</a></code></p>
56<H2>Revision History</H2>
57<P>2006/03/01 Initial version.</P><hr>
58<P>CONFIDENTIAL</p>
59</BODY>
60</HTML>