Draw Ulam Spiral using SDL + OpenGL