A rough implementation of the OpenGL code from hamon into iOS.