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>C Specification</h2> 17 18<dl> 19 <dd><pre><CODE>#include <revolution/gx.h></CODE></pre> 20 </dd> 21 <dd><pre><CODE>void GXSetTexCoordBias(<a href="../Enumerated_Types/GXTexCoordID.html">GXTexCoordID</a> texcoord, 22 GXBool s_enable, 23 GXBool t_enable);</CODE></pre> 24 </dd> 25</dl> 26 27<h2>Arguments</h2> 28<TABLE border="1" cellpadding="3" cellspacing="0.1"> 29 <tr> 30<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>texcoord</font></strong></em></TD> 31<TD width="520">Which texture coordinate <a href="../Enumerated_Types/GXTexCoordID.html">ID</a> is being changed. <BR>Accepted values are: <code>GX_TEXCOORD0</code>, <code>GX_TEXCOORD1</code>, <code>GX_TEXCOORD2</code> through <code>GX_TEXCOORD7</code>.</TD> 32 </tr> 33 <tr> 34<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>s_enable</font></strong></em></TD> 35<TD width="520">GX_TRUE = enable range bias; GX_FALSE</CODE> = disable range bias.</TD> 36 </tr> 37 <tr> 38<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>t_enable</font></strong></em></TD> 39<TD width="520">GX_TRUE = enable range bias; GX_FALSE</CODE> = disable range bias.</TD> 40 </tr> 41</TABLE> 42<h2>Return Values</h2> 43 44<p>None.</p> 45<H2>Description</H2> 46<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> 47<P>The texture coordinate range bias is usually set automatically by the GX API (inside <A href="../Geometry/GXBegin.html"><CODE>GXBegin</CODE></A>). However, the associated bias is not changed by the GX library if texture coordinates are being manually scaled (using <A href="GXSetTexCoordScaleManually.html"><CODE>GXSetTexCoordScaleManually</CODE></A>). It's therefore possible to use <CODE>GXSetTexCoordBias</CODE> to change the bias while texture coordinates are being manually controlled.</P> 48 49<h2>See Also</h2> 50<P><A href="GXSetTexCoordScaleManually.html"><CODE>GXSetTexCoordScaleManually</CODE></A></P> 51<H2>Revision History</H2> 52<P>2006/03/01 Initial version.</P> 53<hr> 54<P>CONFIDENTIAL</p> 55</BODY> 56</HTML>