Offset (bytes) | Description |
---|---|
0 | NNS_G3D_SBC_NODEMIX |
1 | Node ID. |
2 | If the lower order bit is 1, the node will be displayed. If the bit is 0 the node will not be displayed. |
The NNS_G3D_SBC_NODE
command declares the node to which the material and shape information sent after this command belong. By default, this command calls the sbc.c
function NNSi_G3dFuncSbc_NODE
. This function internally performs the following processes:
NNSG3dVisAnmResult
structure's pointer to the pVisAnmResult
member in the NNS_G3dRS
structure.
A
callback. Callbacks in this position are convenient when substituting the visibility calculation to the callback function. You can skip processing until the next callback by setting the NNS_G3D_RSFLAG_SKIP
flag in the NNS_G3dRS
structure in the callback function.
*pVisAnmResult
in response to whether the visibility information is static image or animation.
B
callback. Callbacks in this position are convenient when processing the results of the visibility calculation in the callback function.
NNS_G3dRS
flag in response to the results of *pVisAnmResult
. Depending on whether subsequent commands use this flag, the polygons in the node are displayed or not displayed (visibility animation).
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 use a user callback to override the visibility calculations. |
NNS_G3D_SBC_CALLBACK_TIMING_B |
When you want to extract or manipulate the visibility calculation results. |
NNS_G3D_SBC_CALLBACK_TIMING_C |
When you want to insert some process after this command ends. |
2004/10/14 Added description.
2004/08/02 Initial version.
CONFIDENTIAL