Turn gpTriangle into gpRenderConvexPoly since it works for a generic convex polygon now. Also fix some glitches (use -1 as unused, and introduce new_y boolean).