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="IBM WebSphere Studio Homepage Builder Version 6.5.0.0 for Windows">
7<META http-equiv="Content-Style-Type" content="text/css">
8<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
9<title>THPPlayerDrawCurrentFrame</title>
10</head>
11
12<body>
13
14<h1>THPPlayerDrawCurrentFrame</h1>
15<h2>C Specification</h2>
16
17<dl>
18<dd><pre><code>#include &quot;THPPlayer.h&quot;</code></pre>
19  </dd>
20<dd><pre><CODE>s32 THPPlayerDrawCurrentFrame(GXRenderModeObj *rmode,
21    u32              x,
22    u32              y,
23    u32              polygonW,
24    u32              polygonH);</CODE></pre>
25  </dd>
26</dl>
27
28<h2>Arguments</h2>
29<table border="1" cellpadding="3" cellspacing="0.1">
30  <tr>
31<td width="120" bgcolor="#ffffe8"><strong><FONT face="Courier New"><em>rmode</em></FONT></strong></td>
32<td width="520">Pointer to the currently set <code>GXRenderModeObj</code>. </td>
33  </tr>
34  <tr>
35<td width="120" bgcolor="#ffffe8"><strong><em><FONT face="Courier New">x</FONT></em></strong></td>
36<td width="520">x coordinate of the upper left corner of the polygon that displays the movie and corresponds to the TV screen. </td>
37  </tr>
38  <tr>
39<td width="120" bgcolor="#ffffe8"><strong><em><FONT face="Courier New">y</FONT></em></strong></td>
40<td width="520">y coordinate of the upper left corner of the polygon that displays the movie and corresponds to the TV screen.</td>
41  </tr>
42  <tr>
43<td width="120" bgcolor="#ffffe8"><FONT face="Courier New"><strong><em>polygonW</em></strong></FONT></td>
44<td width="520">Width of the polygon displaying the movie. </td>
45  </tr>
46  <tr>
47<td width="120" bgcolor="#ffffe8"><strong><em><FONT face="Courier New">polygonH</FONT></em></strong></td>
48<td width="520">Height of the polygon displaying the movie.</td>
49  </tr>
50</table>
51
52<h2>Return Values</h2>
53<p>Returns the frame numbers rendered if successful; -1 otherwise. </p>
54
55<H2>Description</H2>
56<p>This function renders the current frame of the THP movie data by applying this data on the polygon. </p>
57
58
59<H2>See Also</H2>
60
61<H2>Revision History</H2>
62<P>03/01/2006 Initial version.</P>
63
64</body>
65</html>
66