GXSetDither

Syntax

#include <revolution/gx.h>

void GXSetDither( GXBool dither );

Arguments

dither Dithering is enabled if GX_TRUE and the pixel format is GX_PF_RGBA6_Z24 or GX_PF_RGB565_Z16. Otherwise, dithering is disabled.

Return Values

None.

Description

Enabling dither is only valid when the pixel format (see the GXSetPixelFmt function) is either GX_PF_RGBA6_Z24 or GX_PF_RGB565_Z16.

A 4x4 Bayer matrix is used for dithering.

Dithering should be turned off if you are planning to use the results of rendering for comparisons. For example, using an outline rendering algorithm that writes ID's to the alpha channel, copies the alpha channel to a texture, and later compares the texture in the TEV.

See Also

GXSetPixelFmt

Revision History

2006/03/01 Initial version.


CONFIDENTIAL