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>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/gx.h> 19 20void 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 ); 23</pre></dd></dl> 24 25<h2>Arguments</h2> 26<TABLE class="arguments" border="1" > 27 <tr> 28<TH>coord</TH> 29<TD>Specifies the texture coordinate</TD> 30 </tr> 31 <tr> 32<TH>line_enable</TH> 33<TD>Enables the texture offset calculation for lines.</TD> 34 </tr> 35 <tr> 36<TH>point_enable</TH> 37<TD>Enables the texture offset calculation for points</TD> 38 </tr> 39</TABLE> 40 41<h2>Return Values</h2> 42<p>None.</p> 43 44<H2>Description</H2> 45<P>This function enables a special texture offset feature for points and lines. When a point's size is defined using the <A href="GXSetPointSize.html"><CODE>GXSetPointSize</CODE></A> function or a line's width is described using the <A href="GXGetLineWidth.html"><CODE>GXSetLineWidth</CODE></A> function, you can also specify a <SPAN class="argument">tex_offsets</SPAN> parameter. The <SPAN class="argument">tex_offsets</SPAN> parameter is added to the texture coordinates, if any, to obtain texture coordinates at the other corners of a point or line. The <SPAN class="argument">tex_offsets</SPAN> are added after the texture coordinate generation operation; see the <A href="../TexCoordGen/GXSetTexCoordGen.html"><CODE>GXSetTexCoordGen</CODE></A> function. <a href="GXEnableTexOffsets.html"><code>GXEnableTexOffsets</code></a> enables this operation for a particular texture coordinate. Offset operations for points and lines are enabled separately. If the enables are false, the same texture coordinate is used for every vertex of the line or point.</P> 46 47<h2>See Also</h2> 48<p>None.</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>