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<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/gx.h> 19 20void GXGetLightAttnK( 21 const <A href="../Structures/GXLightObj.html">GXLightObj</A>* lt_obj, 22 f32* k0, 23 f32* k1, 24 f32* k2 ); 25</pre></dd></dl> 26 27<h2>Arguments</h2> 28<TABLE class="arguments" border="1" > 29 <tr> 30<TH>lt_obj</TH> 31<TD>Pointer to a light object.</TD> 32 </tr> 33 <tr> 34<TH>k0</TH> 35<TD>Distance attenuation coefficient 0.</TD> 36 </tr> 37 <tr> 38<TH>k1</TH> 39<TD>Distance attenuation coefficient 1.</TD> 40 </tr> 41 <tr> 42<TH>k2</TH> 43<TD>Distance attenuation coefficient 2.</TD> 44 </tr> 45</TABLE> 46 47<h2>Return Values</h2> 48<p>None.</p> 49 50<H2>Description</H2> 51<P>This function returns coefficients used in the lighting attenuation calculation for a given light object. The application must allocate memory for the light object. The coefficients <SPAN class="argument">k0</SPAN>, <SPAN class="argument">k1</SPAN>, and <SPAN class="argument">k2</SPAN> are used for distance attenuation. These parameters can be set using the <A href="GXInitLightAttn.html"><CODE>GXInitLightAttn</CODE></A>, <A href="GXInitLightAttnK.html"><CODE>GXInitLightAttnK</CODE></A>, <A href="GXInitLightDistAttn.html"><CODE>GXInitLightDistAttn</CODE></A> or <A href="GXInitLightShininess.html"><CODE>GXInitLightShininess</CODE></A> function.</P> 52 53<h2>See Also</h2> 54<p class="reference"> 55<a href="GXInitLightAttn.html">GXInitLightAttn</a>, 56<a href="GXInitLightAttnK.html">GXInitLightAttnK</a> 57</p> 58 59<H2>Revision History</H2> 60<P> 612006/03/01 Initial version.<br> 62</P> 63 64<hr><p>CONFIDENTIAL</p></body> 65</html>