Combining meshes (different materials) together for rotation/translation

On the iPhone, there's apparently dynamic batching for combining meshes together to move them together, but only if they have the same material. How do you do this for N mesh that have M different materials?

There's no way unless you code this functionality by yourself. Though this is absolutely possible, the easiest method would be to create a texture atlas by hand and have each mesh use the same material.

Jake