# NNS_G3dMdlUseGlbXXXXX

## C Specification

      #include <nnsys/g3d/model.h>

      void NNS_G3dMdlUseGlbDiff( NNSG3dResMdl* pMdl);
      void NNS_G3dMdlUseGlbAmb( NNSG3dResMdl* pMdl);
      void NNS_G3dMdlUseGlbSpec( NNSG3dResMdl* pMdl);
      void NNS_G3dMdlUseGlbEmi( NNSG3dResMdl* pMdl);
      void NNS_G3dMdlUseGlbLightEnableFlag( NNSG3dResMdl* pMdl);
      void NNS_G3dMdlUseGlbPolygonMode( NNSG3dResMdl* pMdl);
      void NNS_G3dMdlUseGlbCullMode( NNSG3dResMdl* pMdl);
      void NNS_G3dMdlUseGlbPolygonID( NNSG3dResMdl* pMdl);
      void NNS_G3dMdlUseGlbAlpha( NNSG3dResMdl* pMdl);
      void NNS_G3dMdlUseGlbFogEnableFlag( NNSG3dResMdl* pMdl);
      void NNS_G3dMdlUseGlbDepthTestCond( NNSG3dResMdl* pMdl);
      void NNS_G3dMdlUseGlb1Dot( NNSG3dResMdl* pMdl);
      void NNS_G3dMdlUseGlbFarClip( NNSG3dResMdl* pMdl);
      void NNS_G3dMdlUseGlbXLDepthUpdate( NNSG3dResMdl* pMdl);

## Arguments

pMdl | Pointer to the model resource

## Return Values

None.

## Description

These functions makes sure the model specified by `pMdl` is rendered using the values set as the global state values.

`NNS_G3dMdlUseGlbDiff` | Specify use of diffuse color as set by the `NNS_G3dGlbMaterialColorDiffAmb` function.
`NNS_G3dMdlUseGlbAmb` | Specify use of ambient color as set by the `NNS_G3dGlbMaterialColorDiffAmb` function.
`NNS_G3dMdlUseGlbSpec` | Specify use of specular color as set by the `NNS_G3dGlbMaterialColorSpecEmi` function.
`NNS_G3dMdlUseGlbEmi` | Specify use of emission color as set by the `NNS_G3dGlbMaterialColorSpecEmi` function.
`NNS_G3dMdlUseGlbLightEnableFlag` | Specify use of light-enable flag as set by the `NNS_G3dGlbPolygonAttr` function.
`NNS_G3dMdlUseGlbPolygonMode` | Specify use of polygon mode as set by the `NNS_G3dGlbPolygonAttr` function.
`NNS_G3dMdlUseGlbCullMode` | Specify use of cull mode as set by the `NNS_G3dGlbPolygonAttr` function.
`NNS_G3dMdlUseGlbPolygonID` | Specify use of polygon ID as set by the `NNS_G3dGlbPolygonAttr` function.
`NNS_G3dMdlUseGlbAlpha` | Specify use of alpha value as set by the `NNS_G3dGlbPolygonAttr` function.
`NNS_G3dMdlUseGlbFogEnableFlag` | Specify use of fog-enable flag as set by the `NNS_G3dGlbPolygonAttr` function.
`NNS_G3dMdlUseGlbDepthTestCond` | Specify use of depth-test condition as set by the `NNS_G3dGlbPolygonAttr` function.
`NNS_G3dMdlUseGlb1Dot` | Specify use of the specification for displaying 1-dot polygons as set by the `NNS_G3dGlbPolygonAttr` function.
`NNS_G3dMdlUseGlbFarClip` | Specify use of the specification for displaying polygons that intersect with the FAR clip plane as set by the `NNS_G3dGlbPolygonAttr` function.
`NNS_G3dMdlUseGlbXLDepthUpdate` | Specify use of the enable flag for updating the depth value of translucent polygons as set by the `NNS_G3dGlbPolygonAttr` function.

## See Also

`NNS_G3dMdlUseMdlXXXXX`

## Revision History

10/12/2004 Initial version.