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>GXSetTexCoordBias</title> 10</head> 11 12<body> 13 14<h1 align="left">GXSetTexCoordBias</h1> 15 16<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/gx.h> 19 20void GXSetTexCoordBias(<a href="../Enumerated_Types/GXTexCoordID.html">GXTexCoordID</a> texcoord, 21 GXBool s_enable, 22 GXBool t_enable); 23</pre></dd></dl> 24 25<h2>Arguments</h2> 26<TABLE class="arguments" border="1" > 27 <tr> 28<TH>texcoord</TH> 29<TD>The texture coordinate ID to be changed. Accepted values are: <code>GX_TEXCOORD0</code>, <code>GX_TEXCOORD1</code>, <code>GX_TEXCOORD2</code> through <code>GX_TEXCOORD7</code>.</TD> 30 </tr> 31 <tr> 32<TH>s_enable</TH> 33<TD><CODE>GX_TRUE</CODE> = enable range bias; <CODE>GX_FALSE</CODE> = disable range bias.</TD> 34 </tr> 35 <tr> 36<TH>t_enable</TH> 37<TD><CODE>GX_TRUE</CODE> = enable range bias; <CODE>GX_FALSE</CODE> = disable range bias.</TD> 38 </tr> 39</TABLE> 40 41<h2>Return Values</h2> 42<p>None.</p> 43 44<H2>Description</H2> 45<P>Range bias is used for texture coordinates to which the wrap mode <CODE>GX_REPEAT</CODE> is applied in order to increase the precision of texture coordinates spread over a large area. Primitive texture coordinate values are biased in the zero direction (using equal integers) before entering the graphics pipeline. Bits necessary for calculations upon exiting the pipeline are maintained in this way. Since coordinates repeat, integer-based bias has no effect on the actual external appearance of a texture.</P> 46<P>The texture coordinate range bias is usually set automatically by the GX API (inside the <A href="../Geometry/GXBegin.html"><CODE>GXBegin</CODE></A> function). However, the associated bias is not changed by the GX library if texture coordinates are being manually scaled (using the <A href="GXSetTexCoordScaleManually.html"><CODE>GXSetTexCoordScaleManually</CODE></A> function). It is therefore possible to use the <CODE>GXSetTexCoordBias</CODE> function to change the bias while texture coordinates are being manually controlled.</P> 47 48<h2>See Also</h2> 49<P class="reference"> 50<A href="GXSetTexCoordScaleManually.html">GXSetTexCoordScaleManually</A> 51</P> 52 53<H2>Revision History</H2> 54<P> 552006/03/01 Initial version.<br> 56</P> 57 58<hr><p>CONFIDENTIAL</p></body> 59</HTML>