Jump to content
  • Advertisement
Sign in to follow this  
Meganan

Asking for a quick explanation...

This topic is 4453 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I was just reading the Beginning OpenGL Game Programming book (Page 231) and I came accross the function glDrawArrays(). Now the prototupe for this function is: void glDrawArrays(GLenum mode, GLint first, GLsizei count); Now I understood what mode is from the books explanation but i have no idea what first and count are or what they represent. Could somebody please tell me what first and count are there for.

Share this post


Link to post
Share on other sites
Advertisement
Link

first - Specifies the starting index in the enabled arrays.
count - Specifies the number of indices to be rendered.

Come on, this forum is nice and all, but Google is the bomb. Do you feel lucky? Well.. do ya, punk.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!