1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META http-equiv="Content-Style-Type" content="text/css"> 6<META name="GENERATOR" content="Microsoft FrontPage 5.0"> 7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 8<TITLE>GDSetLPSize</TITLE> 9</HEAD> 10<BODY> 11<H1 align="left">GDSetLPSize</H1> 12 13<H2>Syntax</H2> 14<dl><dd><pre class="construction"> 15#include <revolution/gd.h> 16 17void GDSetLPSize( 18 u8 lineWidth, u8 pointSize, 19 <A href="../gx/Enumerated_Types/GXTexOffset.html">GXTexOffset</A> lineOffset, <A href="../gx/Enumerated_Types/GXTexOffset.html">GXTexOffset</A> pointOffset, 20 <A href="../gx/Enumerated_Types/GXBool.html">GXBool</A> lineHalfAspect ); 21</pre></dd></dl> 22 23<H2>Arguments</H2> 24<TABLE class="arguments" border="1" > 25 <TBODY> 26 <TR> 27<TH><STRONG><EM><CODE>lineWidth</CODE></EM></STRONG></TH> 28<TD>Specifies the width of the line in 1/6 pixels. Maximum width is 42.5 pixels.</TD> 29 </TR> 30 <TR> 31<TH><STRONG><EM><CODE>pointSize</CODE></EM></STRONG></TH> 32<TD>Specifies the width and height of a point in 1/6 pixels.</TD> 33 </TR> 34 <TR> 35<TH><STRONG><EM><CODE>ineOffset</CODE></EM></STRONG></TH> 36<TD>Specifies the <a href="../gx/Enumerated_Types/GXTexOffset.html">offset</a> from the vertex texture coordinates to the opposite angle of the line.</TD> 37 </TR> 38 <TR> 39<TH><STRONG><EM><CODE>pointOffset</CODE></EM></STRONG></TH> 40<TD>Specifies the <a href="../gx/Enumerated_Types/GXTexOffset.html">offset</a> from the vertex texture coordinates to the opposite angle of the point.</TD> 41 </TR> 42 <TR> 43<TH><STRONG><EM><CODE>lineHalfAspect</CODE></EM></STRONG></TH> 44<TD>Sets <CODE>GX_TRUE</CODE> if the aspect ratio (height/width) of the line to render will be cut in half.</TD> 45 </TR> 46 </TBODY> 47</TABLE> 48 49<H2>Return Values</H2> 50<P>None.</P> 51 52<H2>Description</H2> 53<P>This function sets various parameters for rendering lines and points. This function sets the <SPAN class="argument">lineWidth</SPAN> and <SPAN class="argument">pointSize</SPAN>. Furthermore, the texture offset value for either primitive type are set. The texture offset is the value added to the texture coordinate of the opposite angle of a point or line. Texture offsets must be enabled by the associated coordinates (see <a href="GDSetTexCoordScale.html"><CODE>GDSetTexCoordScaleAndTOEs</CODE></a> function).</P> 54<P>In addition, with this function, you can also set the aspect ratio during line rendering. If <SPAN class="argument">lineHalfAspect</SPAN> is <CODE>GX_TRUE</CODE>, then the aspect ratio becomes half the height for line rendering.</P> 55<P>Note that the texture offset values are added after the texture coordinates are generated (see the <a href="../gx/TexCoordGen/GXSetTexCoordGen.html"><code>GXSetTexCoordGen</code></a> function).</P> 56 57<H2>See Also</H2> 58<P class="reference"> 59<A href="../gx/Geometry/GXSetLineWidth.html">GXSetLineWidth</A>, 60<A href="../gx/Geometry/GXSetPointSize.html">GXSetPointSize</A>, 61<A href="../gx/PixelProc/GXSetFieldMode.html">GXSetFieldMode</A> 62</P> 63 64<H2>Revision History</H2> 65<P> 662006/03/01 Initial version.<BR> 67</P> 68 69<hr><p>CONFIDENTIAL</p></body> 70</HTML>