THPSimpleDrawCurrentFrame

Syntax

#include "THPSimple.h"

s32 THPSimpleDrawCurrentFrame(GXRenderModeObj *rmode,
                              u32              x,
                              u32              y,
                              u32              polygonW,
                              u32              polygonH);

Arguments

rmode Pointer to the GXRenderModeObj that is currently set.
x x coordinate of the upper left of the polygon that displays the movie data on the TV screen.
y y coordinate of the upper left of the polygon that displays the movie data on the TV screen.
polygonW Width of the polygon that displays the movie.
polygonH Height of the polygon that displays the movie.

Return Values

Returns the frame numbers rendered if successful, -1 otherwise.

Description

The THPSimpleDrawCurrentFrame function draws the THP video data that was extracted by the previous THPSimpleDecode function and pastes it on a polygon.

See Also

THPSimpleDecode

Revision History

2006/03/01 Initial version.


CONFIDENTIAL