# NNS_G3dFuncSbcTable

## Syntax

      #include <nnsys/g3d/sbc.h>

      typedef void (*NNSG3dFuncSbc)(NNSG3dRS* rs, u32 opt);

      NNSG3dFuncSbc NNS_G3dFuncSbcTable[NNS_G3D_SBC_COMMAND_NUM];

## Description

When the `NNS_G3dDraw` function is executed, it interprets a type of byte code known as SBC, but the pointers to the functions corresponding to individual SBC commands are stored in the `NNS_G3dFuncSbcTable` array. By changing the elements of this array, the processes that are executed on the corresponding SBC commands can be switched. The `NNSG3dFuncSbc`–type functions take the pointer to the `NNSG3dRS` structure and the (3–bit) options of the loaded SBC commands as arguments.

## See Also

SBC and callback, `NNS_G3dDraw`

## Revision History

2004/10/19 Initial version.

CONFIDENTIAL