View Full Version : glVertex2i vs. glVertex2f

10-05-2008, 05:25 PM
If I'm rendering in glOrtho() mode, are they any significant differences between passing points to glVertex2i or glVertex2f?
Are they the same?

glOrtho( 0.0, w,h, 0.0, -1.0, 1.0 );

I suppose this sets up screen space to be 1:1 with OpenGL?
I plan to use it to draw curved lines and would like it to be as accurate as possible.

unsigned void
10-06-2008, 01:04 AM
If you want sub-pixel precision (with antialiasing), of course, you should use floats.

10-06-2008, 03:16 PM
Thanks! This is strictly 2D stuff.