# NNS_G2dEntryNewOamAffine

## C Specification

      #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. This function 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 manager 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, the previous function was kept under a different name.

## See Also

`NNS_G2dEntryOamManagerAffine`, `NNS_G2dSetOamManagerAffine`

## Revision History

08/02/2004 Renamed function

05/28/2004 Initial version