GXGetPixelFmt

Syntax

#include <revolution/gx.h>

void GXGetPixelFmt(
    GXPixelFmt    *pix_fmt, 
    GXZFmt16      *z_fmt );

Arguments

pix_fmt Pointer used to return the pixel format. Values are as follows.
Name Pixel Format
GX_PF_RGB8_Z24 No antialiasing. 8-bit for each RGB value, 24-bit Z value.
GX_PF_RGBA6_Z24 No antialiasing. 6-bit for each RGBA value, 24-bit Z value.
GX_PF_RGB565_Z16 Antialiasing. RGB565, 16-bit Z value
z_fmt Pointer used to return the compression type for the 16-bit Z format. Values are as follows.
Name Z format
GX_ZC_LINEAR Linear 16 bit
GX_ZC_NEAR Compressed format for smaller far/near ratio
GX_ZC_MID Compressed format for medium far/near ratio
GX_ZC_FAR Compressed format for large far/near ratio

Return Values

None.

Description

Gets the pixel format and antialiasing (AA) mode of the EFB inside the graphics processor as set by the GXSetPixelFmt function.

See Also

GXSetPixelFmt

Revision History

2009/01/05 Initial version.


CONFIDENTIAL