Community
FBX Forum
Welcome to Autodesk’s FBX Forums. Share your knowledge, ask questions, and explore popular FBX topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

What is user data record used for?

0 REPLIES 0
Reply
Message 1 of 1
1991md
272 Views, 0 Replies

What is user data record used for?

example code:

    // Bake mesh as VBO(vertex buffer object) into GPU.
    if (lNodeAttribute->GetAttributeType() == FbxNodeAttribute::eMesh)
    {
        FbxMesh * lMesh = pNode->GetMesh();
        if (pSupportVBO && lMesh && !lMesh->GetUserDataPtr())
        {
            FbxAutoPtr<VBOMesh> lMeshCache(new VBOMesh);
            if (lMeshCache->Initialize(lMesh))
            {
                lMesh->SetUserDataPtr(lMeshCache.Release());
            }
        }
    }

my questions are 1) why we need to call  GetUserDataPtr(), SetUserDataPtr() here? 2) what is user record data

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report