G2_SetOBJMode


C Specification

#include <nitro/gx/g2_oam.h>
void G2_SetOBJMode(GXOamAttr * oam, GXOamMode mode, int cParam);

Description

This function changes the OBJ mode and color parameters for the OAM data stored in *oam. cParam specifies a single palette from the 16 palettes when OBJ mode is not set to bitmap OBJ. In this case, the OBJ Extended palette is not loaded and the settings when color mode is set to 256-color mode are ignored. When OBJ mode is set to bitmap OBJ, the value is the α-value of OBJ. See G2_SetOBJAttr for details on GXOamMode types.

Arguments

oam Pointer to where the OAM data is stored
mode OBJ mode
cParam Color parameter

Return Values

None

See Also

G2_SetOBJAttr

Revision History

01/19/2004 Initial Version