sphere and plane collision

I created a wire cube using glutWireCube(…)
and a ball inside the cube.
The cube is rotating.
how should i detect the collisions ?

Check on www.gametutorials.com

Don’t use glutWireCube().