GXSetFieldMode

Syntax

#include <revolution/gx.h>

void GXSetFieldMode( GXBool field_mode, GXBool half_aspect_ratio );

Arguments

field_mode When true, adjusts texture LOD computation as explained in the description. If false, no adjustment.
half_aspect_ratio When true, adjust the line aspect ratio as suitable. If false, no adjustment.

Return Values

None.

Description

This function controls various rasterization and texturing parameters that relate to field-mode and double-strike rendering. In field-mode rendering, adjust the vertical part of the texture LOD computation to account for the fact that pixels cover only half of the space from one rendered scan line to the next (with the other half of the space filled by a pixel from the other field). In both field-mode and double-strike rendering, adjust the aspect ratio for points and lines to account for the fact that pixels will be double-height when displayed (the pixel aspect ratio is 1/2).

The values set here usually come directly from the render mode. The field_rendering flag is passed directly to field_mode. The half_aspect_ratio parameter is true if xfbHeight is half of viHeight, false otherwise.

The GXInit function sets both fields according to the default render mode.

See Also

GXSetFieldMask

Revision History

2006/03/01 Initial version.


CONFIDENTIAL