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>C Specification</h2> 17 18<dl> 19 <dd><pre><CODE>#include <revolution/gx.h></CODE></pre> 20 </dd> 21 <dd><pre><CODE>void GXLoadLightObjImm( 22 const <A href="../Structures/GXLightObj.html">GXLightObj</A>* lt_obj, 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</CODE></strong></em></TD> 31<TD width="520">Pointer to a light object.</TD> 32 </tr> 33 <tr> 34<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>light</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 loads a light object (a structure that contains precompiled register settings for various light parameters) into a set of hardware registers associated with a <code><em><strong>light</strong></em></code> <a href="../Enumerated_Types/GXLightID.html">ID</a>. The light object first be initialized using the necessary <code>GXInitLight*</code> functions.</P> 43<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. Another way to load a light object is with <a href="GXLoadLightObjIndx.html"><code>GXLoadLightObjIndx</code></a>.</P> 44 45<h2>See Also</h2> 46 47<p><code><a href="GXLoadLightObjIndx.html">GXLoadLightObjIndx</a><br> <a href="GXSetChanCtrl.html">GXSetChanCtrl</a></code></p> 48<H2>Revision History</H2> 49<P>2006/03/01 Initial version.</P> 50<hr> 51<P>CONFIDENTIAL</p> 52</BODY> 53</HTML>