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<H2>C Specification</H2>
13<DL>
14  <DD>
15<PRE><CODE>#include &lt;revolution/gd.h&gt;</CODE></PRE>
16  <DD>
17<PRE>void GDSetLPSize(
18u8 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 );</PRE>
21</DL>
22<H2>Arguments</H2>
23<TABLE border="1" cellpadding="3" cellspacing="0.1">
24  <TBODY>
25    <TR>
26<TD width="120" valign="top" bgcolor="#ffffe8"><EM><STRONG><CODE><STRONG><EM><CODE>lineWidth</CODE></EM></STRONG></CODE></STRONG></EM></TD>
27<TD width="520">Specifies the width of the line in 1/6 pixels. Maximum width is 42.5 pixels.</TD>
28    </TR>
29    <TR>
30<TD width="120" valign="top" bgcolor="#ffffe8"><EM><STRONG><CODE><STRONG><EM><CODE>pointSize</CODE></EM></STRONG></CODE></STRONG></EM></TD>
31<TD width="520">Specifies the width and height of a point in 1/6 pixels.</TD>
32    </TR>
33    <TR>
34<TD width="120" valign="top" bgcolor="#ffffe8"><EM><STRONG><CODE><STRONG><EM><CODE>ineOffset</CODE></EM></STRONG></CODE></STRONG></EM></TD>
35<TD width="520">Specifies the <a href="../gx/Enumerated_Types/GXTexOffset.html">offset</a> from the vertex texture coordinates to the opposite angle of the line.</TD>
36    </TR>
37    <TR>
38<TD width="120" valign="top" bgcolor="#ffffe8"><EM><STRONG><CODE><STRONG><EM><CODE>pointOffset</CODE></EM></STRONG></CODE></STRONG></EM></TD>
39<TD width="520">Specifies the <a href="../gx/Enumerated_Types/GXTexOffset.html">offset</a> from the vertex texture coordinates to the opposite angle of the point.</TD>
40    </TR>
41    <TR>
42<TD width="120" valign="top" bgcolor="#ffffe8"><EM><STRONG><CODE><STRONG><EM><CODE>lineHalfAspect</CODE></EM></STRONG></CODE></STRONG></EM></TD>
43<TD width="520">Set to <CODE>GX_TRUE</CODE> to divide the aspect ratio (height/width) of the line to render in half .</TD>
44    </TR>
45  </TBODY>
46</TABLE>
47<H2>Return Values</H2>
48<P>None.</P>
49<H2>Description</H2>
50<P>This function sets various parameters for rendering lines and points. This function sets the <code><em><strong>lineWidth</strong></em></code> and <code><em><strong>pointSize</strong></em></code>. 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>GDSetTexCoordScale</CODE></a>).</P>
51<P>In addition, with this function, you can also set the aspect ratio during line rendering. If <code><em><strong>lineHalfAspect</strong></em></code> is <CODE>GX_TRUE</CODE>, then the aspect ratio becomes half the height for line rendering.</P>
52<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>
53<H2>See Also</H2>
54<P><A href="../gx/Geometry/GXSetLineWidth.html"><CODE>GXSetLineWidth</CODE></A><BR> <A href="../gx/Geometry/GXSetPointSize.html"><CODE>GXSetPointSize</CODE></A><BR> <A href="../gx/PixelProc/GXSetFieldMode.html"><CODE>GXSetFieldMode</CODE></A></P>
55<H2>Revision History</H2>
56<P>03/01/2006 Initial version.</P>
57</BODY>
58</HTML>