# NNS_G2dSetRendererOverwriteEnable/Disable

## Syntax

      #include <nnsys/g2d/g2d_Renderer.h>

          NNS_G2D_INLINE void NNS_G2dSetRendererOverwriteEnable
          (
              NNSG2dRendererInstance*         pRnd,
              NNSG2dRendererOverwriteParam    flag
          )
          NNS_G2D_INLINE void NNS_G2dSetRendererOverwriteDisable
          (
              NNSG2dRendererInstance*         pRnd,
              NNSG2dRendererOverwriteParam    flag
          )

## Arguments

`pRend` | [OUT] Renderer entity
`flag` | [IN] Enumerator that indicates which parameter items to set (`NNSG2dRendererOverwriteParam`)

## Return Values

None.

## Description

Sets the OAM parameters for the renderer to overwrite the OAM.
The overwriting feature is enabled using the `NNS_G2dSetRendererOverwriteEnable` function and disabled using the `NNS_G2dSetRendererOverwriteDisable` function. The parameters that were enabled with this function are overwritten with the values that were set by the `NNS_G2dGetRendererOverwrite*` function. The overwriting of the affine transformation mode is executed regardless of the setting for this function.
The following is the definition of the enumerator `NNSG2dRendererOverwriteParam` that shows the parameter items to be set.

        typedef enum NNSG2dRendererOverwriteParam
        {
            NNS_G2D_RND_OVERWRITE_NONE          = 0x0, // Does not overwrite OBJ attribute
            NNS_G2D_RND_OVERWRITE_PRIORITY      = 0x1, // Rendering priority
            NNS_G2D_RND_OVERWRITE_PLTTNO        = 0x2, // Palette number
            NNS_G2D_RND_OVERWRITE_MOSAIC        = 0x4, // Mosaic ON/OFF
            NNS_G2D_RND_OVERWRITE_OBJMODE       = 0x8, // Object mode
            NNS_G2D_RND_OVERWRITE_MAX

        }NNSG2dRendererOverwriteParam;

## See Also

`NNS_G2dGetRendererOverwrite*`

## Revision History

2004/11/10 Added a new item to `NNSG2dRendererOverwriteParam`.
2004/10/12 Initial version.

CONFIDENTIAL