THPSimpleDrawCurrentFrame

C Specification

#include "THPSimple.h"
s32 THPSimpleDrawCurrentFrame(GXRenderModeObj *rmode,
    u32              x,
    u32              y,
    u32              polygonW,
    u32              polygonH);

Arguments

rmode Pointer to currently set GXRenderModeObj.
x The x coordinate of the upper left of the polygon that displays the movie, corresponding to the TV screen.
y The y coordinate of the upper left of the polygon that displays the movie, corresponding to the TV screen.
polygonW The width of the polygon displaying the movie.
polygonH The height of the polygon displaying the movie.

Return Values

Returns the frame number drawn if successful; -1 otherwise.

Description

This function draws the THP video data that was extracted by the previous THPSimpleDecode function by applying it on a polygon.

See Also

THPSimpleDecode

Revision History

03/01/2006 Initial version.