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<h2>C Specification</h2> 16 17<dl> 18<dd><pre><code>#include "THPSimple.h"</code></pre> 19 </dd> 20 <dd><pre><CODE>s32 THPSimpleDrawCurrentFrame(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><em><CODE>rmode</CODE></em></strong></td> 32<td width="520">Pointer to currently set <code>GXRenderModeObj</code>.</td> 33 </tr> 34 <tr> 35<td width="120" bgcolor="#ffffe8"><strong><em><CODE>x</CODE></em></strong></td> 36<td width="520">The x coordinate of the upper left of the polygon that displays the movie, corresponding to the TV screen.</td> 37 </tr> 38 <tr> 39<td width="120" bgcolor="#ffffe8"><strong><em><CODE>y</CODE></em></strong></td> 40<td width="520">The y coordinate of the upper left of the polygon that displays the movie, corresponding to the TV screen.</td> 41 </tr> 42 <tr> 43<td width="120" bgcolor="#ffffe8"><strong><em><CODE>polygonW</CODE></em></strong></td> 44<td width="520">The width of the polygon displaying the movie.</td> 45 </tr> 46 <tr> 47<td width="120" bgcolor="#ffffe8"><strong><em><CODE>polygonH</CODE></em></strong></td> 48<td width="520">The height of the polygon displaying the movie.</td> 49 </tr> 50</table> 51 52<h2>Return Values</h2> 53<p>Returns the frame number drawn, if successful; -1 otherwise. </p> 54 55<H2>Description</H2> 56<p>This function draws the THP video data that was extracted by the previous <a href="THPSimpleDecode.html"><code>THPSimpleDecode</code></a> function by applying it on a polygon.</p> 57 58 59<H2>See Also</H2> 60<P><a href="THPSimpleDecode.html"><code>THPSimpleDecode</code></a></P> 61 62<H2>Revision History</H2> 63<P>2006/03/01 Initial version.</P> 64 65<hr> 66<P>CONFIDENTIAL</p> 67</BODY> 68</HTML>