Textured sphere demo code using Scala and OpenGL 2