add arcball rotate

code is modified from opengl tutorial on wiki