Substitute for glVertex3f calls?
Everyone keeps saying theres a faster way than constantly doing glVertex3f calls but I can''t remember what its called. Any ideas anyone?
My fellow Americans I have just signed legislation that outlaws Russia forever. Bombing will commence in five minutes.
probably
Know a good tutorial on them?

My fellow Americans I have just signed legislation that outlaws Russia forever. Bombing will commence in five minutes.
glVertexPointer() is one way to go, along with glIndexPointer().
http://nehe.gamedev.net has a lot of tutorials on OpenGL, check them out...
[edited by - ALiENiD on August 24, 2003 11:13:11 AM]
http://nehe.gamedev.net has a lot of tutorials on OpenGL, check them out...
[edited by - ALiENiD on August 24, 2003 11:13:11 AM]
FReY! Man! Haven''t seen you on Gamedev before! Nice to see you in other places than BCD.
Anyway, what you''re looking for are vertex arrays, and their extensions ( VBO ). VA''s are perfectly adequately explained in the MSDN, plus there are tutorials on nutty.org IIRC.
You have to remember that you''re unique, just like everybody else.
Anyway, what you''re looking for are vertex arrays, and their extensions ( VBO ). VA''s are perfectly adequately explained in the MSDN, plus there are tutorials on nutty.org IIRC.
You have to remember that you''re unique, just like everybody else.

If at first you don't succeed, redefine success.
quote:
Original post by ALiENiD
glVertexPointer() is one way to go, along with glIndexPointer().
[edited by - ALiENiD on August 24, 2003 11:13:11 AM]
I think you might be confused as to what glIndexPointer is for..
it''s actually for setting where to load colour indices (8 bit colour) from... Not exactly useful today

there is glVertexPointer, glNormalPointer, glTexCoordPointer, glColorPointer, and also glIndexPointer and glEdgeFlagPointer too to round it out with the somewhat less useful pointer setters

All need to be enabled and disabled (glEnableClientState) seperatly too, so set the arrays up with these calls, enable the ones appropriate, and use drawElements to rip through a list of indices. It''s all good.
| - Project-X - On hold..

This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement