NNS_G3dRenderObjSetMatAnmBuffer

C Specification

#include <nnsys/g3d/kernel.h>
void
NNS_G3dRenderObjSetMatAnmBuffer(
    NNSG3dRenderObj*    pRenderObj,
    NNSG3dMatAnmResult* buf
);

Arguments

pRenderObj Pointer to the NNSG3dRenderObj structure
buf Pointer to the record buffer for the material animation

Return Values

None.

Description

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:

See Also

NNS_G3dRenderObjReleaseMatAnmBuffer, NNS_G3dRenderObjSetJntAnmBuffer

Revision History

2004/09/16 Added usage examples.
2004/08/02 Initial version.


CONFIDENTIAL