Public Member Functions | |
| HRESULT | AddBone (GUID gBoneId, IRdMatrixf *pDefaultPose) |
| HRESULT | RemoveBone (GUID gBoneId) |
| HRESULT | GetNumBones (RtUlong *pdwCount) |
| HRESULT | GetBoneId (RtUlong dwIndex, GUID *pgBoneId) |
| HRESULT | SetBoneId (RtUlong dwIndex, GUID gBoneId) |
| HRESULT | GetBoneDefaultPoseInv (RtUlong dwIndex, RtMatrixf *pMatrix) |
| HRESULT | SetBoneDefaultPose (RtUlong dwIndex, RtMatrixf *pMatrix) |
| HRESULT | GetSkinningData (RtUlong dwIndex, IRsGenStream **ppBuffer) |
| HRESULT | SetSkinningData (RtUlong dwIndex, IRsGenStream *pBuffer) |
| HRESULT | GetBoneIndex (GUID gBoneId, RtUlong *pdwIndex) |
| HRESULT | GetSkinReferenceMesh (IRdMesh **ppMesh) |
| HRESULT | SetSkinReferenceMesh (IRdMesh *pMesh) |
| HRESULT IRdSkinningParameters::AddBone | ( | GUID | gBoneId, | |
| IRdMatrixf * | pDefaultPose | |||
| ) |
Add bone to skinning parameters. Note, that you are responsible for filling skinning data to maintain consistency.
| gBoneId | [in] ID of the bone you are adding. After attaching bone will get 0 influence weight. | |
| pDefaultPose | [in] Default pose is just orientation of joints for the bone. |
| HRESULT IRdSkinningParameters::RemoveBone | ( | GUID | gBoneId | ) |
Remove bone from skinning parameters.
| gBoneId | [in] ID of bone to remove. |
| HRESULT IRdSkinningParameters::GetNumBones | ( | RtUlong * | pdwCount | ) |
Get number of bones used for skinning.
S_OK
| HRESULT IRdSkinningParameters::GetBoneId | ( | RtUlong | dwIndex, | |
| GUID * | pgBoneId | |||
| ) |
Get skinning bone ID.
| dwIndex | [in] Record index. | |
| pgBoneId | [out] Retrieved bone GUID. |
| HRESULT IRdSkinningParameters::SetBoneId | ( | RtUlong | dwIndex, | |
| GUID | gBoneId | |||
| ) |
Set skinning bone ID.
| dwIndex | [in] Record index. | |
| gBoneId | [in] New bone ID to set. |
| HRESULT IRdSkinningParameters::GetBoneDefaultPoseInv | ( | RtUlong | dwIndex, | |
| RtMatrixf * | pMatrix | |||
| ) |
Get inverse matrix for default pose. In default pose, skinning makes no changes to the mesh.
| dwIndex | [in] Record index. | |
| pMatrix | [out] Inverse of stance pose matrix. |
| HRESULT IRdSkinningParameters::SetBoneDefaultPose | ( | RtUlong | dwIndex, | |
| RtMatrixf * | pMatrix | |||
| ) |
Set default pose matrix. In default pose, skinning makes no changes to the mesh.
| dwIndex | [in] Record index. | |
| pMatrix | [in] Matrix to set. |
| HRESULT IRdSkinningParameters::GetSkinningData | ( | RtUlong | dwIndex, | |
| IRsGenStream ** | ppBuffer | |||
| ) |
Get skinning data for specified bone index.
| dwIndex | [in] Record index. |
S_OK
| HRESULT IRdSkinningParameters::SetSkinningData | ( | RtUlong | dwIndex, | |
| IRsGenStream * | pBuffer | |||
| ) |
Set skinning data for specified bone index.
| dwIndex | [in] Record index. | |
| pBuffer | [in] Skin influence data to set. |
| HRESULT IRdSkinningParameters::GetBoneIndex | ( | GUID | gBoneId, | |
| RtUlong * | pdwIndex | |||
| ) |
Get bone index.
| gBoneId | [in] Bone id to look for. |
S_OK if bone found.
| HRESULT IRdSkinningParameters::GetSkinReferenceMesh | ( | IRdMesh ** | ppMesh | ) |
Get skin reference mesh.
S_OK
| HRESULT IRdSkinningParameters::SetSkinReferenceMesh | ( | IRdMesh * | pMesh | ) |
Set skin reference mesh.
| pReferenceMesh | [in] Skin reference mesh to set. | |
| S_OK |
1.5.5