# NNS_G3dGlbFlushP

## C Specification

      #include <nnsys/g3d/glbstate.h>

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

## Arguments

None.

## Return Values

None.

## Description

Sends the entire global state kept in the G3D library to the geometry engine. The global state includes the following information (if available):

- 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

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