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>GXGetLightDirv</title> 10</head> 11 12<body> 13 14<h1 align="left">GXGetLightDirv</h1> 15 16<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/gx.h> 19 20#define GXGetLightDirv(lo, vec) \ 21 (GXGetLightDir((lo), (f32*)(vec), (f32*)(vec)+1, (f32*)(vec)+2)) 22</pre></dd></dl> 23 24<h2>Arguments</h2> 25<TABLE class="arguments" border="1" > 26 <tr> 27<TH>lo</TH> 28<TD>Pointer to a light object.</TD> 29 </tr> 30 <tr> 31<TH>vec</TH> 32<TD>Returns direction vector. You may use an <CODE>f32</CODE>-type array or structure.</TD> 33 </tr> 34</TABLE> 35 36<h2>Return Values</h2> 37<p>None.</p> 38 39<H2>Description</H2> 40<P>This macro returns the direction of the light from a light object into a vector structure. Use the <A href="GXInitLightDir.html"><CODE>GXInitLightDir</CODE></A>, <A href="GXInitLightDirv.html"><CODE>GXInitLightDirv</CODE></A>, <A href="GXInitSpecularDir.html"><CODE>GXInitSpecularDir</CODE></A> or <A href="GXInitSpecularDirv.html"><CODE>GXInitSpecularDirv</CODE></A> function to set the light direction.</P> 41 42<h2>See Also</h2> 43<p class="reference"> 44<a href="GXInitLightDir.html">GXInitLightDir</a>, 45<a href="GXInitLightDirv.html">GXInitLightDirv</a>, 46<a href="GXInitSpecularDir.html">GXInitSpecularDir</a>, 47<a href="GXInitSpecularDirv.html">GXInitSpecularDirv</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>