# NNS_G3dGlbFlushP

## Syntax

      #include <nnsys/g3d/glbstate.h>

      void NNS_G3dGlbFlushP( void );
      void NNS_G3dGlbFlush( void );

## Arguments

None.

## Return Values

None.

## Description

Sends the entire global state kept in the G3D library to the geometry engine. The following is a partial list of what is included in the global state:

- The projective transformation matrix
- The camera matrix
- The modeling matrix
- The view port
- The light direction and color
- The default material color

Regarding matrices, the projective transformation matrix is set to the current projection matrix, and the matrix composed of the camera matrix and modeling matrix is set to the current position coordinate matrix and directional vector matrix. After sending the global state to the geometry engine, the matrix mode becomes `POSITION/VECTOR`.

## See Also

`NNS_G3dGlbFlushVP, NNS_G3dGlbFlushWVP`

## Revision History

2004/10/12 Left `NNS_G3dGlbFlush` only in the Syntax section.
2004/09/16 Added `NNS_G3dGlbFlushP` as a separate name.
2004/08/02 Initial version.

CONFIDENTIAL