OpenGL (v1.2) visualization of finding the X and Y extents of a bunch of rotated rectangles