# NNS_G2dBeginRendering

## Syntax

      #include <nnsys/g2d/g2d_Renderer.h>

      void NNS_G2dBeginRendering ( NNSG2dRendererInstance* pRendererInstance );

## Arguments

`pRendererInstance` | [IN] Renderer entity

## Return Values

None.

## Description

Performs configurations (preprocessing) before rendering with the renderer.
Call this function before calling the renderer rendering method (the `NNS_G2dDrawXXX` functions). Do not call this function inside the `BeginRendering` — `EndRendering` block. (Nested function calls are prohibited.)
Also, the `NNS_G2dBeginRenderingEx` function is provided, which operates like the `NNS_G2dBeginRendering` function and can set the hint flag to optimize rendering.

## See Also

`NNS_G2dEndRendering`

## Revision History

2004/11/10 Added description of the `NNS_G2dBeginRenderingEx` function.

2004/05/28 Initial version.

CONFIDENTIAL