With the version released on 10/11/2004, the NNS_G3dDraw function can set one callback function for one SBC instead of one callback for all SBCs. However, this change caused incompatibility issues with some of the previous versions.
NNSG3dRS structure, the cbFunc, cbCmdPtr, cbCmd, and cbTiming members were eliminated. Therefore, if any code that handles these members are used in callbacks, it will not compile.
NNS_G3dRenderObjSetCallBack function was invalidated. The feature that starts up the callback by specifying the SBC address was eliminated.
When the cbFunc, cbCmd, and cbTiming members of the NNSG3dRS structure are changed in the callback function, replace the code as shown below.
NNS_G3dRSResetCallBack function in the callback function, and release the callback that is being used.
NNS_G3dRSSetCallBack function to specify new callback functions and generation conditions.
The second and subsequent callbacks cannot be registered with the NNS_G3dRenderObjSetCallBack function. To limit the size of NNSG3dRenderObj, the NNSG3dRS structure is set in the NNS_G3dDraw function before drawing to register callbacks.
NNS_G3dRenderObjSetInitFunc function, set the function that is executed when the NNS_G3dDraw function is executed before the drawing to the NNSG3dRenderObj structure.
NNS_G3dRSSetCallBack.
For details, see the sample callback5.
10/11/2004 Initial version.
CONFIDENTIAL