glcube: implement rotation and window resizing