G3_LightColor

# G3*_LightColor

## Syntax

      #include <nitro/gx/g3imm.h>
      #include <nitro/gx/g3b.h>
      #include <nitro/gx/g3c.h>

      void G3_LightColor(GXLightId lightID, GXRgb rgb);

      // Below are APIs for creating the display list (command list)
      void G3B_LightColor(GXDLInfo* info, GXLightId lightID, GXRgb rgb);
      void G3C_LightColor(GXDLInfo* info, GXLightId lightID, GXRgb rgb);
      void G3BS_LightColor(GXDLInfo* info, GXLightId lightID, GXRgb rgb);
      void G3CS_LightColor(GXDLInfo* info, GXLightId lightID, GXRgb rgb);

## Arguments

info | Command List Information.
lightID | Light ID
`rgb` | Light color

## Return Values

None.

## Description

This function sets the light color. `lightID` selects one of 4 lights and `rgb` sets the light color.

`GX_LIGHTID_0` | Specifies Light 0
`GX_LIGHTID_1` | Specifies Light 1
`GX_LIGHTID_2` | Specifies Light 2
`GX_LIGHTID_3` | Specifies Light 3

The following indicates the type definition for `GXLightId` types.

    typedef enum
    {
        GX_LIGHTID_0 = 0,
        GX_LIGHTID_1 = 1,
        GX_LIGHTID_2 = 2,
        GX_LIGHTID_3 = 3
    }
    GXLightId;

## See Also

G3_LightVector

## Revision History

2004/01/19 Initial version.

CONFIDENTIAL