# NNS_G2dSetOamManagerAffine

## Syntax

      #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 the affine parameter with the specified index in the OAM Manager. It is valid for affine parameters not managed by the OAM manager entity. Use the `NNS_G2dEntryOamManagerAffine` function in the affine parameters management state. This function gives a warning if it made settings in the affine parameter area that the OAM manager entity manages. This function is the `NNS_G2dEntryOamAffine` function under a new name. The previous 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

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

CONFIDENTIAL