GXPeekARGB

C Specification

#include <revolution/gx.h>
void GXPeekARGB( u16 x, u16 y, u32* color );

Arguments

x Thex coordinate, in pixels (0 - 639).
y The y coordinate, in lines (0 - 527).
color

Pointer to a u32. Color read is in ARGB format, eight bits per component.

Return Values

None.

Description

This function allows the CPU to read a color value directly from the Embedded Frame Buffer (EFB) at position x,y.

For an antialiased frame buffer, only subsample 0 of a pixel is read. The returned color is in 32-bit format.

See Also

GXPeekZ
GXPokeARGB

Revision History

03/01/2006 Initial version.