THPPlayerDrawCurrentFrame

C Specification

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

Arguments

rmode Pointer to the currently set GXRenderModeObj.
x x coordinate of the upper left corner of the polygon that displays the movie and corresponds to the TV screen.
y y coordinate of the upper left corner of the polygon that displays the movie and corresponds to the TV screen.
polygonW Width of the polygon displaying the movie.
polygonH Height of the polygon displaying the movie.

Return Values

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

Description

This function renders the current frame of the THP movie data by applying this data on the polygon.

See Also

Revision History

03/01/2006 Initial version.