# NNS_G3dGlbFlushWVP

## Syntax

      #include <nnsys/g3d/glbstate.h>

      void NNS_G3dGlbFlushWVP( void );
      void NNS_G3dGlbFlushAlt( 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 the matrices, the current projection matrix is configured as a compound matrix formed of the projective transformation matrix, camera matrix, and modeling matrix. The current position coordinate matrix and directional vector matrix are configured as unit matrices. After sending the global state to the geometry engine, the matrix mode becomes `POSITION/VECTOR`.

## See Also

`NNS_G3dGlbFlushP, NNS_G3dGlbFlushVP`

## Revision History

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

CONFIDENTIAL