I'm working my way into animation, and am currently working on serialization of skeleton/animation data. Since VS2010 mangles strings in the debugger, I'm using the save file to double check my input data has been loaded correctly.
My skeleton consists of a name, a count of bones, and a pointer to the array of bones. Each bone consists of a name,a transform, and a pointer to it's parent bone. I need to know how to get the index of a parent in the array via the pointer to the parent.
tl;dr; How can I get the index of an element in an array from a pointer to said element.