#include <nnsys/g3d/kernel.h>
void
NNS_G3dRenderObjSetMatAnmBuffer(
NNSG3dRenderObj* pRenderObj,
struct NNSG3dMatAnmResult_* buf
);
| pRenderObj | Pointer to the NNSG3dRenderObj structure |
buf |
Pointer to the record buffer for the material animation |
None.
Registers the record buffer for storing and playing the calculation results of the material animation in the rendering object. The record buffer must have a region of NNS_G3D_RENDEROBJ_MATBUFFER_SIZE(pRenderObj->resMdl->info.numMat) bytes or greater.
This buffer is for saving the calculation results of each material of the drawn model. Normally this information is not saved. However, by attaching the record buffer using the NNS_G3dRenderObjSetMatAnmBuffer function, you can save data in the record buffer and play animation from the record buffer. To save data in the record buffer, run the NNS_G3dDraw function after setting the NNS_G3D_RENDEROBJ_FLAG_RECORD 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 how to use this function:
NNS_G3dRenderObjReleaseMatAnmBuffer, NNS_G3dRenderObjSetJntAnmBuffer
09/16/2004 Added usage examples.
08/02/2004 Initial version.