GXSetTexCopySrc

C Specification

#include <revolution/gx.h>
void GXSetTexCopySrc( 
    u16         left,
    u16         top,
    u16         wd,
    u16         ht );

Arguments

left The left most source pixel to copy, in a multiple of 2 pixels.
top The top most source line to copy, in a multiple of 2 lines.
wd The width to copy, in a multiple of 2 pixels.
ht The height to copy, in a multiple of 2 lines.

Return Values

None.

Description

This function sets the source parameters for the Embedded Frame Buffer (EFB) to texture image copy. This feature is useful when creating textures using the Graphics Processor (GP). 

The GP will copy textures into the tiled texture format specified in GXCopyTex. 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 GXGetTexBufferSize.

See Also

GXCopyTex
GXSetTexCopyDst

Revision History

2006/03/01 Initial version.


CONFIDENTIAL