Hi,
How do I iterate through all the bones?
I am using the spine c runtimes and need to perform certain actions on each bone.
Cheers.
I think I got it.
spSkeletonData* mySkeletonData = SkeletonJson_readSkeletonDataFile(json, (fileName + ".json").c_str());
spBone** g = skeletonDrawable->skeleton->bones;
for (int i = 0; i < mySkeletonData->bonesCount; ++i)
{
spBone* bone = g[i];
// now do something with g[i]
}