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>GXEnableTexOffsets</title>
10</head>
11
12<body>
13
14<h1 align="left">GXEnableTexOffsets</h1>
15
16<h2>C Specification</h2>
17
18<dl>
19<dd><pre><CODE>#include &lt;revolution/gx.h&gt;</CODE></pre></dd>
20<dd><pre><CODE>void GXEnableTexOffsets ( <a href="../Enumerated_Types/GXTexCoordID.html">GXTexCoordID</a>  coord,
21			  <a href="../Enumerated_Types/GXBool.html">GXBool</a>        line_enable,
22			  <a href="../Enumerated_Types/GXBool.html">GXBool</a>        point_enable );</CODE></pre></dd>
23</dl>
24<h2>Arguments</h2>
25<TABLE border="1" cellpadding="3" cellspacing="0.1">
26  <tr>
27<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>coord</font></strong></em></TD>
28<TD width="520">Specifies the texture coordinate</TD>
29    </tr>
30  <tr>
31<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>line_enable</font></strong></em></TD>
32<TD width="520">Enables the texture offset calculation for lines.</TD>
33    </tr>
34  <tr>
35<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>point_enable</font></strong></em></TD>
36<TD width="520">Enables the texture offset calculation for points</TD>
37    </tr>
38</TABLE>
39<h2>Return Values</h2>
40
41<p>None.</p>
42<H2>Description</H2>
43<P>This function enables a special texture offset feature for points and lines.&nbsp;When a point's size is defined using <a href="GXSetPointSize.html"><code>GXSetPointSize</code></a> or a line's width is described using <a href="GXGetLineWidth.html"><code>GXSetLineWidth</code></a>, you can also specify a parameter <code><em><strong>texOffsets</strong></em></code>. The parameter <code><em><strong>tex_offsets</strong></em></code> is added to the texture coordinate(s), if any, to obtain texture coordinates at the other corners of a point or line.&nbsp;The <code><em><strong>tex_offsets</strong></em></code> are added after the texture coordinate generation operation, see <a href="../TexCoordGen/GXSetTexCoordGen.html"><code>GXSetTexCoordGen</code></a>. <a href="GXEnableTexOffsets.html"><code>GXEnableTexOffsets</code></a> enables this operation for a particular texture coordinate.&nbsp;Offset operations for points and lines are enabled separately.&nbsp;If the enables are false, the same texture coordinate is used for every vertex of the line or point.</P>
44
45<h2>See Also</h2>
46<H2>Revision History</H2>
47<P>03/01/2006 Initial version.</P>
48</BODY>
49</HTML>