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, which is used in rendering, to the current matrix. By default, this command calls the NNSi_G3dFuncSbc_MTX function found in sbc.c. This function internally performs the following processes:

  1. Checks the timing A callback. Callbacks in this position are convenient when replacing the matrix restore operation with a different operation. 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 to the current matrix, beginning at the designated matrix stack position.
  3. Checks the timing C callback. Callbacks in this position are 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 insert some process after this command ends.

See Also

Revision History

2004/10/14 Added description.
2004/08/02 Initial version.


CONFIDENTIAL