# NNS_G3D_SBC_SHP

## Command Format

Offset (bytes) | Description
--- | ---
0 | `NNS_G3D_SBC_SHP`
1 | Shape ID.

## Description

The `NNS_G3D_SBC_SHP` command sends the designated primitive to the geometry engine. By default, this command calls the `NNSi_G3dFuncSbc_SHP` 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 substituting the sending of the primitive to the callback function. You can skip processing until the next callback by setting the `NNS_G3D_RSFLAG_SKIP` flag of the `NNS_G3dRS` function in the callback function.
2. Sends the display list of the primitive to the geometry engine.
3. Checks the timing `B` callback.
4. There currently is not a process between timing B and timing C. However, there is the possibility that some sort of process will be placed there in the future.
5. Checks the timing `C` callback.

Timing for Calling a Callback Function | Usage
--- | ---
`NNS_G3D_SBC_CALLBACK_TIMING_A` | When you want a user program to send primitives.
`NNS_G3D_SBC_CALLBACK_TIMING_B` | When you want to run a process after sending primitives.
`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