# NNS_G2dEntryNewOamAffine

## Syntax

      #include <nnsys/g2d/g2d_Oam.h>

      u16 NNS_G2dEntryNewOamAffine(
                             NNSG2dOamManagerInstance*   pMan,
                             const MtxFx22*              mtx );

## Arguments

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

## Return Values

The registered affine parameter index. Returns `NNS_G2D_OAM_AFFINE_IDX_NONE` if the registration fails.

## Description

Sets the affine parameters in the OAM manager. The affine index is returned as the return value.
The affine management section of the OAM manager must be initialized. This function returns `NNS_G2D_OAM_AFFINE_IDX_NONE` if the registration fails due to the lack of free area. Use `NNS_G2dSetOamManagerAffine` when you are not using the affine manager. The name of this function has changed to `NNS_G2dEntryOamManagerAffine`. To maintain compatibility with past versions, this function has been kept under a different name.

## See Also

`NNS_G2dEntryOamManagerAffine`
`NNS_G2dSetOamManagerAffine`

## Revision History

2004/08/02 Renamed function.
2004/05/28 Initial version.

CONFIDENTIAL