# NNS_G2dSetOamManagerAffine

## C Specification

      #include <nnsys/g2d/g2d_Oam.h>

      void NNS_G2dSetOamManagerAffine(
              NNSG2dOamManagerInstance*       pMan,
              const MtxFx22*                mtx,
              u16                           idx );

## Arguments

`pMan` | [OUT] OAM manager entity
`mtx` | [IN] Affine transformation matrix
`idx` | [IN] Affine parameter index

## Return Values

None.

## Description

Sets affine parameters in the OAM Manager with the specified index. It is valid for the affine parameter that is not managed by the OAM manager entity. Use the `NNS_G2dEntryOamManagerAffine` function for the affine parameters-management state. It gives a warning if the setting was done to the affine parameter area that is managed by the OAM manager entity. `NNS_G2dEntryOamAffine` has undergone a name change. This function will remain to preserve compatibility.

The definition of `NNSG2dOamType` is shown below.

    typedef enum NNSG2dOamType
    {
    NNS_G2D_OAMTYPE_INVALID = 0,            // Invalid type
    NNS_G2D_OAMTYPE_MAIN,                   // OAM in Main 2D Graphics Engine.
    NNS_G2D_OAMTYPE_SUB,                    // OAM in Sub  2D Graphics Engine.
    NNS_G2D_OAMTYPE_SOFTWAREEMULATION,      // Emulation that uses the 3D Graphics Engine
    NNS_G2D_OAMTYPE_MAX

    }NNSG2dOamType;

## See Also

`NNS_G2dEntryOamAffine`, `NNS_G2dEntryOamManagerAffine`

## Revision History

10/12/2004 Corrected typo. Added to description.
08/02/2004 Renamed function.
05/28/2004 Initial version.