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>GXLoadLightObjIndx</title>
10</head>
11
12<body>
13
14<h1 align="left">GXLoadLightObjIndx</h1>
15
16<h2>C Specification</h2>
17
18<dl>
19<dd><pre><CODE>#include &lt;revolution/gx.h&gt;</CODE></pre>
20  </dd>
21<dd><pre><CODE>void GXLoadLightObjIndx(
22u32         lt_obj_indx,
23<a href="../Enumerated_Types/GXLightID.html">GXLightID</a>   light );</CODE></pre>
24  </dd>
25</dl>
26
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_indx</CODE></strong></em></TD>
31<TD width="520">Index of a light object.</TD>
32    </tr>
33  <tr>
34<TD width="120" bgcolor="#ffffe8"><em><strong><CODE><STRONG><EM><CODE>light</CODE></EM></STRONG></CODE></strong></em></TD>
35<TD width="520">Light <a href="../Enumerated_Types/GXLightID.html">ID</a>. Accepted values are: <code>GX_LIGHT0</code>, <code>GX_LIGHT1</code>, <code>GX_LIGHT2</code>, ... , <code>GX_LIGHT7</code>.</TD>
36    </tr>
37</TABLE>
38<h2>Return Values</h2>
39
40<p>None.</p>
41<H2>Description</H2>
42<P>This function instructs the graphics processor to fetch the light object at <code><em><strong>lt_obj_indx</strong></em></code> from the array where</P>
43<P><CODE><A href="../Geometry/GXSetArray.html">GXSetArray</A>(GX_LIGHT_ARRAY, ...);</CODE></P>
44<P>Then it loads the object into the hardware register associated with the <code><em><strong>light</strong></em></code> ID. <B>Note:</B> The data flows directly from the array in DRAM to the graphics processor; therefore, the light object data may not be coherent with the CPU cache.&nbsp;<BR>The application is responsible for storing the light object data from the CPU cache (using <a href="../../os/Cache/DCStoreRange.html"><code>DCStoreRange</code></a> ) before calling the <a href="GXLoadLightObjIndx.html"><code>GXLoadLightObjIndx</code></a> function.</P>
45
46<h2>See Also</h2>
47
48<p><code><a href="GXLoadLightObjImm.html">GXLoadLightObjImm</a><br> <a href="GXSetChanCtrl.html">GXSetChanCtrl</a></code></p>
49<H2>Revision History</H2>
50<P>
518/10/2006 Corrected mistake with enum type.<br>03/01/2006 Initial version.
52</P>
53<hr>
54<P>CONFIDENTIAL</p>
55</BODY>
56</HTML>