# NNS_G3dSetResultMtx

## Syntax

      #include <nnsys/g3d/util.h>

      BOOL
      NNS_G3dSetResultMtx(
          const NNSG3dRenderObj* pRenderObj,
          const MtxFx43*         pos,
          const MtxFx33*         nrm,
          u32                    nodeID
      );

## Arguments

pRenderObj | Pointer to the `RenderObj` structure.
pos | Pointer to the clip coordinate matrix
nrm | Pointer to the directional vector matrix
nodeID | The node ID.

## Return Values

Returns `TRUE` if the matrix was able to be substituted in the corresponding stack position.

## Description

If the matrix that corresponds to `nodeID` after execution of the `NNS_G3dDraw` function is configured so that it remains in the matrix stack (if the `-s` option is used with `g3dcvtr`, all matrices that correspond to the `nodeID` are stored in the matrix stack), the matrices that are specified by `pos` and `nrm` are substituted in the corresponding stack positions. A `TRUE` is returned if substitution was possible, and a `FALSE` is returned if not.

When the return value is `TRUE`, the matrix mode will be changed to `Position` / `Vector` matrix mode. It is OK to have a `NULL` for `nrm`, but not for `pos`.

## See Also

`NNS_G3dGetResultMtx`

## Revision History

2004/08/02 Initial version.

CONFIDENTIAL