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>GXGetLightAttnK</title>
10</head>
11
12<body>
13
14<h1 align="left">GXGetLightAttnK</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 GXGetLightAttnK(
22    const <A href="../Structures/GXLightObj.html">GXLightObj</A>*   lt_obj,
23    f32*                k0,
24    f32*                k1,
25    f32*                k2 );</CODE></pre></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>k0</CODE></strong></em></TD>
36<TD width="520">Returns the distance attenuation coefficient 0</TD>
37    </tr>
38  <tr>
39<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>k1</CODE></strong></em></TD>
40<TD width="520">Returns the distance attenuation coefficient 1</TD>
41    </tr>
42  <tr>
43<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>k2</CODE></strong></em></TD>
44<TD width="520">Returns the distance 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 of a given light object.&nbsp;The memory for the light object must be allocated by the application.&nbsp;The coefficients <code><em><strong>k0</strong></em></code>, <code><em><strong>k1</strong></em></code>, and <code><em><strong>k2</strong></em></code> are used for distance attenuation.&nbsp;These coefficients may be set using <a href="GXInitLightAttn.html"><code>GXInitLightAttn</code></a>, <a href="GXGetLightAttnK.html"><code>GXInitLightAttnK</code></a>, <a href="GXInitLightDistAttn.html"><code>GXInitLightDistAttn</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="GXInitLightAttnK.html">GXInitLightAttnK</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>