#include <nnsys/g3d/kernel.h>
void
NNS_G3dRenderObjSetJntAnmBuffer(
NNSG3dRenderObj* pRenderObj,
NNSG3dJntAnmResult* buf
);
pRenderObj | Pointer to the NNSG3dRenderObj structure. |
buf | Pointer to the record buffer for the joint animation |
None.
Attaches the record buffer, for storing and playing the calculation results of the joint animation, to the rendering object. The record buffer to register must have a region of NNS_G3D_RENDEROBJ_JNTBUFFER_SIZE
(pRenderObj->resMdl->info.numNode
) bytes or greater.
This record buffer is for saving the calculation results of the SRT information of each node of the rendered model. This information is not usually saved. However, by using the NNS_G3dRenderObjSetJntAnmBuffer
function to attach the record buffer, you can save data to the record buffer and play animations from the record buffer. When saving data to the record buffer, run the NNS_G3dDraw
function after setting the NNS_G3D_RENDEROBJ
flag using the NNS_G3dRenderObjSetFlag
function. When playing data registered in the record buffer, run the NNS_G3dDraw
function after resetting the NNS_G3D_RENDEROBJ_FLAG_RECORD
flag.
The following examples show some of the ways to use this function:
NNS_G3dRenderObjReleaseJntAnmBuffer
, NNS_G3dRenderObjSetMatAnmBuffer
2004/10/15 Revised description.
2004/09/16 Added usage examples.
2004/08/02 Initial version.
CONFIDENTIAL