PDA

View Full Version : glVertex2i vs. glVertex2f



sammie381
10-05-2008, 04: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?

Like:
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, 12:04 AM
If you want sub-pixel precision (with antialiasing), of course, you should use floats.

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