# NNS_G3D_SBC_MTX

## Command Format

Offset (bytes) | Description
--- | ---
0 | `NNS_G3D_SBC_MTX` is stored.
1 | Index to the matrix stack.

## Description

The `NNS_G3D_SBC_MTX` command restores the `position` / `vector` matrix for rendering to the current matrix. By default, this command calls the `sbc.c` `NNSi_G3dFuncSbc_MTX` function. The following processes are performed inside this function:

1. Checks the timing `A` callback. The callback in this position is convenient when replacing the restore operations of the matrix. You can skip processing until the next callback by setting the `NNS_G3D_RSFLAG_SKIP` flag of `NNS_G3dRS` in the callback function.
2. Restores from the designated matrix stack position to the current matrix.
3. Checks the timing `C` callback. The callback in this position is used when performing some sort of operation after this command finishes.

Timing for Calling a Callback Function | Usage
--- | ---
`NNS_G3D_SBC_CALLBACK_TIMING_A` | When you want to replace the matrix restore operation with some process.
`NNS_G3D_SBC_CALLBACK_TIMING_B` | You cannot use this timing.
`NNS_G3D_SBC_CALLBACK_TIMING_C` | When you want to enter some process after this command ends.

## See Also

## Revision History

10/14/2004 Revised description.

08/02/2004 Initial version.