Is there a way to cast from CATransform3D to GLKMatrix4, or do I always need to manually convert them from value to value? I guess casting would be faster.
Something like this should work:
CATransform3D t; GLKMatrix4 t2 = *((GLKMatrix4 *)&t); t = *((CATransform3D *)&t2);
Assuming CATransform3d and GLKMatrix4 have the same column/row setup. (I think so)
CATransform3d
GLKMatrix4