Esempio n. 1
0
void Skeleton::constructRenderObject(list<Object*>& objects, Color color)
{
	for (short id=0; id<num_bones; id++)
	{
		Bone* bone = bone_array[id];
		bone->constructRenderObject(color);
		objects.push_back(bone->getBoneObject());
		if (bone->getBaseBox() != NULL) objects.push_back(bone->getBaseBox());
		if (bone->getTipBox() != NULL) objects.push_back(bone->getTipBox());
	}
}