Surface rotation added. Refactoring for using openglObject in real life