# G2_SetOBJMode

## C Specification

      #include <nitro/gx/g2_oam.h>

      void G2_SetOBJMode(GXOamAttr * oam, GXOamMode mode, int cParam);

## Arguments

oam | Pointer to the location storing the OAM data
mode | OBJ mode
cParam | Color parameter

## Return Values

None.

## 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. For type `GXOamMode`, refer to `G2_SetOBJAttr`.

## See Also

G2_SetOBJAttr

## Revision History

01/19/2004 Initial version.