GXSetTexCopySrc

Syntax

#include <revolution/gx.h>

void GXSetTexCopySrc( 
    u16         left,
    u16         top,
    u16         wd,
    u16         ht );

Arguments

left The left most source pixel to copy. In multiples of two pixels.
top The top most source line to copy. In multiples of two lines.
wd The width to copy. In multiples of two pixels.
ht The height to copy. In multiples of two lines.

Return Values

None.

Description

This function sets the source parameters for the embedded frame buffer (EFB) to copy to the texture image. This feature is useful when creating textures using the graphics processor (GP). 

The GP will copy textures into the tiled texture format specified in the GXCopyTex function. The GP always copies tiles (32B), so image widths and heights that are not a multiple of the tile width will be padded with undefined data in the copied image. Also, the allocated image size in main memory must be a multiple of 32B. For more information, see the GXGetTexBufferSize function.

See Also

GXCopyTex, GXSetTexCopyDst

Revision History

2006/03/01 Initial version.


CONFIDENTIAL