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>GXSetTexCopySrc</title>
10</head>
11
12<body>
13
14<h1 align="left">GXSetTexCopySrc</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/gx.h&gt;
19
20void GXSetTexCopySrc(
21    u16         left,
22    u16         top,
23    u16         wd,
24    u16         ht );
25</pre></dd></dl>
26
27<h2>Arguments</h2>
28<TABLE class="arguments" border="1" >
29  <tr>
30<TH>left</TH>
31<TD>The left most source pixel to copy. In multiples of two pixels.</TD>
32  </tr>
33  <tr>
34<TH>top</TH>
35<TD>The top most source line to copy. In multiples of two lines.</TD>
36  </tr>
37  <tr>
38<TH>wd</TH>
39<TD>The width to copy. In multiples of two pixels.</TD>
40  </tr>
41  <tr>
42<TH>ht</TH>
43<TD>The height to copy. In multiples of two lines.</TD>
44  </tr>
45</TABLE>
46
47<h2>Return Values</h2>
48<p>None.</p>
49
50<H2>Description</H2>
51<P>This function sets the source parameters for the embedded frame buffer (EFB) to copy to the texture image. This feature is useful when creating textures using the graphics processor (GP).&nbsp;</P>
52<P>The GP will copy textures into the tiled texture format specified in the <A href="GXCopyTex.html"><CODE>GXCopyTex</CODE></A> function. The GP always copies tiles (32B), so image widths and heights that are not a multiple of the tile width will be padded with undefined data in the copied image.&nbsp;Also, the allocated image size in main memory must be a multiple of 32B. For more information, see the <A href="../Texture/GXGetTexBufferSize.html"><CODE>GXGetTexBufferSize</CODE></A> function.</P>
53
54<h2>See Also</h2>
55<P class="reference">
56<A href="GXCopyTex.html">GXCopyTex</A>,
57<A href="GXSetTexCopyDst.html">GXSetTexCopyDst</A>
58</p>
59
60<h2>Revision History</h2>
61<p>
622006/03/01 Initial version.<br>
63</p>
64
65<hr><p>CONFIDENTIAL</p></body>
66</html>