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>C Specification</h2>
17
18<dl>
19<dd><PRE><CODE>#include &lt;revolution/gx.h&gt;</CODE></PRE></dd>
20<dd><pre>void GXSetTexCopySrc(
21u16         left,
22u16         top,
23u16         wd,
24u16         ht );</pre></dd>
25</dl><h2>Arguments</h2>
26<TABLE border="1" cellpadding="3" cellspacing="0.1">
27  <tr>
28<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>left</font></strong></em></TD>
29<TD width="520">The left most source pixel to copy, in a multiple of 2 pixels.</TD>
30    </tr>
31  <tr>
32<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>top</font></strong></em></TD>
33<TD width="520">The top most source line to copy, in a multiple of 2 lines.</TD>
34    </tr>
35  <tr>
36<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>wd</font></strong></em></TD>
37<TD width="520">The width to copy, in a multiple of 2 pixels.</TD>
38    </tr>
39  <tr>
40<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>ht</font></strong></em></TD>
41<TD width="520">The height to copy, in a multiple of 2 lines.</TD>
42    </tr>
43</TABLE>
44<h2>Return Values</h2>
45
46<p>None.</p>
47<H2>Description</H2>
48<P>This function sets the source parameters for the Embedded Frame Buffer (EFB) to texture image copy. This feature is useful when creating textures using the Graphics Processor (GP).&nbsp;</P>
49<P>The GP will copy textures into the tiled texture format specified in <a href="GXCopyTex.html"><code>GXCopyTex</code></a>.&nbsp;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 <a href="../Texture/GXGetTexBufferSize.html"><code>GXGetTexBufferSize</code></a>.</P>
50
51
52<h2>See Also</h2>
53
54<p><A href="GXCopyTex.html"><CODE>GXCopyTex</CODE></A><br> <A href="GXSetTexCopyDst.html"><CODE>GXSetTexCopyDst</CODE></A></p>
55<h2>Revision History</h2><p>03/01/2006 Initial version.</p></body>
56</html>