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>THPSimpleDrawCurrentFrame</title>
10</head>
11
12<body>
13
14<h1>THPSimpleDrawCurrentFrame</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &quot;THPSimple.h&quot;
19
20s32 THPSimpleDrawCurrentFrame(GXRenderModeObj *rmode,
21                              u32              x,
22                              u32              y,
23                              u32              polygonW,
24                              u32              polygonH);
25</pre></dd></dl>
26
27<h2>Arguments</h2>
28<TABLE class="arguments" border="1" >
29  <tr>
30<th>rmode</th>
31<td>Pointer to the <code>GXRenderModeObj</code> that is currently set.</td>
32  </tr>
33  <tr>
34<th><STRONG><EM><CODE>x</CODE></EM></STRONG></th>
35<td>x coordinate of the upper left of the polygon that displays the movie data on the TV screen.</td>
36  </tr>
37  <tr>
38<th>y</th>
39<td>y coordinate of the upper left of the polygon that displays the movie data on the TV screen.</td>
40  </tr>
41  <tr>
42<th>polygonW</th>
43<td>Width of the polygon that displays the movie.</td>
44  </tr>
45  <tr>
46<th>polygonH</th>
47<td>Height of the polygon that displays the movie.</td>
48  </tr>
49</table>
50
51<h2>Return Values</h2>
52<p>Returns the frame numbers rendered if successful, -1 otherwise.</p>
53
54<H2>Description</H2>
55<p>The <code>THPSimpleDrawCurrentFrame</code> function draws the THP video data that was extracted by the previous <a href="THPSimpleDecode.html"><code>THPSimpleDecode</code></a> function and pastes it on a polygon.</p>
56
57<H2>See Also</H2>
58<P class="reference">
59<a href="THPSimpleDecode.html">THPSimpleDecode</a>
60</P>
61
62<H2>Revision History</H2>
63<P>
642006/03/01 Initial version.<br>
65</P>
66
67<hr><p>CONFIDENTIAL</p></body>
68</html>