#include <revolution/gx.h> u32 GXCompressZ16( u32 z24, GXZFmt16 zfmt );
| z24 | 24-bit Z value. 0x00000000 <= z24 <= 0x00FFFFFF. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| zfmt | Z compression format. Accepted values are:
|
16-bit compressed Z value. Return type is u32 to match the argument of the GXPokeZ function.
This auxiliary function is used to directly write the Z value to the 16-bit Z buffer, using the GXPokeZ function. The 24-bit value is compressed to a 16-bit value via the Z compression format specified by the argument zfmt.
2006/03/01 Initial version.
CONFIDENTIAL