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>GXLoadLightObjImm</title>
10</head>
11
12<body>
13
14<h1 align="left">GXLoadLightObjImm</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/gx.h&gt;
19
20void GXLoadLightObjImm(
21    const <A href="../Structures/GXLightObj.html">GXLightObj</A>* lt_obj,
22    <A href="../Enumerated_Types/GXLightID.html">GXLightID</A>         light );
23</pre></dd></dl>
24
25<h2>Arguments</h2>
26<TABLE class="arguments" border="1" >
27  <tr>
28<TH>lt_obj</TH>
29<TD>Pointer to a light object.</TD>
30  </tr>
31  <tr>
32<TH>light</TH>
33<TD>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>
34  </tr>
35</TABLE>
36
37<h2>Return Values</h2>
38<p>None.</p>
39
40<H2>Description</H2>
41<P>This function loads a light object (a structure that includes precompiled register settings for various light parameters) into a set of hardware registers associated with a <SPAN class="argument">light</SPAN> <A href="../Enumerated_Types/GXLightID.html">ID</A>.&nbsp;The light object must first be initialized using the required <CODE>GXInitLight*</CODE> function.</P>
42<P>This function copies the light object data into the graphics FIFO through the CPU write-gather buffer mechanism. This guarantees that the light object is coherent with the CPU cache.&nbsp;Another way to load a light object is with the <A href="GXLoadLightObjIndx.html"><CODE>GXLoadLightObjIndx</CODE></A> function.</P>
43
44<h2>See Also</h2>
45<p class="reference">
46<a href="GXLoadLightObjIndx.html">GXLoadLightObjIndx</a>,
47<a href="GXSetChanCtrl.html">GXSetChanCtrl</a>
48</p>
49
50<H2>Revision History</H2>
51<P>
522006/03/01 Initial version.<br>
53</P>
54
55<hr><p>CONFIDENTIAL</p></body>
56</HTML>