GXDecompressZ16

C Specification

#include <revolution/gx.h>
u32 GXDecompressZ16( u32 z16, GXZFmt16 zfmt );

Arguments

z16 16-bit compressed z value. Type is u32 to match the argument of GXPeekZ.
zfmt Z compression format. Accepted values are:
Name Z format
GX_ZC_LINEAR Linear 16bit
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

24-bit decompressed Z value.

Description

This auxiliary function is used to directly read the Z value from the 16-bit Z buffer using the GXPeekZ function. The 16-bit value is expanded to a 24-bit value via the Z compression format specified by the argument zfmt.

See Also

GXPeekZ
GXCompressZ16

Revision History

03/01/2006 Initial version.