# NNS_G2dSetRendererAffineOverwriteMode

## C Specification

      #include <nnsys/g2d/g2d_Renderer.h>

      NNS_G2D_INLINE void NNS_G2dSetRendererAffineOverwriteMode(
             NNSG2dRendererInstance* pRend,
              NNSG2dRendererAffineTypeOverwiteMode    affineMode );

## Arguments

`pRend` | [OUT] Renderer entity
affineMode | [IN] Affine transformation mode rewrite method

## Return Values

None.

## Description

This function obtains the processing method for overwriting the OBJ's affine transformation mode when the renderer is drawing OBJs by using the 2D graphics engine. Specify the method using the `NNSG2dRendererAffineTypeOverwiteMode`.
The definition of `NNSG2dRendererAffineTypeOverwiteMode` is shown below:

    typedef enum NNSG2dRendererAffineTypeOverwiteMode
    {
        NNS_G2D_RND_AFFINE_OVERWRITE_NONE,  // Does not overwrite
        NNS_G2D_RND_AFFINE_OVERWRITE_NORMAL,// Sets to the normal affine transformation
        NNS_G2D_RND_AFFINE_OVERWRITE_DOUBLE // Sets to the double-size affine transformation

    }NNSG2dRendererAffineTypeOverwiteMode;

When `NNS_G2D_RND_AFFINE_OVERWRITE_DOUBLE` is specified, the renderer will internally perform position correction of the OBJ. Starting with the 06/06/05 version, position correction processing is performed only when the OBJ's affine transformation mode is actually changed. In other words, no correction will be applied to data created originally as a double-size affine OBJ.)

## See Also

`NNS_G2dGetRendererAffineOverwriteMode
`

## Revision History

06/06/2005 Added warning about position correction processing.
10/04/2004 Initial version.