WVR_ReleaseNatureHandModel

WVR_EXPORT void WVR_ReleaseNatureHandModel(WVR_HandRenderModel_t ** handModel)

Use this function to deallocate the memory used for the natural hand devices.

Delete the natural hand model received from WVR_GetCurrentNaturalHandModel.

Version
API Level 7
Parameters
  • handModel: An allocated object about natural hand model. The object will be destroyed and the structure cleared(handModel will be set nullptr).

How to use

Try the example below:

WVR_HandRenderModel_t *renderModel = nullptr;
WVR_GetCurrentNaturalHandModel(&renderModel);

if (renderModel != nullptr) {
    mHandObjs[Hand_Left]->loadModel(&(*renderModel).left);
    mHandObjs[Hand_Right]->loadModel(&(*renderModel).right);
    mHandAlphaTex = Texture::loadTextureFromBitmapWithoutCached((*renderModel).handAlphaTex);
    mHandObjs[Hand_Left]->setTexture(mHandAlphaTex);
    mHandObjs[Hand_Right]->setTexture(mHandAlphaTex);

    WVR_ReleaseNatureHandModel(&renderModel);
}