Closed jsundram closed 11 years ago
Using GL_POLYGON was a lot slower than glRectf for 2 reasons:
Similarly, I believe that line should use GL_LINES and triangle() should use GL_TRIANGLES, although these changes wouldn't get the benefit of 2).
I didn't make those changes because I haven't had time to test them yet.
Looks good. Thanks for the change!
Using GL_POLYGON was a lot slower than glRectf for 2 reasons:
Similarly, I believe that line should use GL_LINES and triangle() should use GL_TRIANGLES, although these changes wouldn't get the benefit of 2).
I didn't make those changes because I haven't had time to test them yet.