# NNS_G3dDraw1Mat1Shp

## C Specification

      #include <nnsys/g3d/1mat1shp.h>

      void
      NNS_G3dDraw1Mat1Shp(
      const NNSG3dResMdl*     pResMdl,
      u32 matID,
      u32 shpID,
      BOOL sendMat
      );

## Arguments

pResMdl | Pointer to the model resource
matID | Index to the material to be rendered
shpID | Index to the shape to be rendered
sendMat | Whether to send material information to the geometry engine

## Return Values

None.

## Description

This function is good for rendering very simple objects. It renders the material specified by `matID` and the shape specified by `shpID` that belong to a model. If `sendMat` is FALSE, it does not send material information. When using this function, note that some general operations are not performed, enabling this function to do the same rendering more quickly than the `NNS_G3dDraw` function. Operations not performed include the initial setup required to render a model and the data copying that accompanies animation calculations. However, this function has the following limitations.

- Animation resources cannot be replayed.
- It cannot contain a callback process.
- It is not possible to compose with a material's global state. The model's material information is sent to the geometry engine as-is.
- It is not possible to render shapes that have envelopes.

## See Also

NNS_G3dDraw

## Revision History

08/31/2004 Initial version.