Jump to content
  • Advertisement
Sign in to follow this  
deftware

OpenGL Calling all OpenGL guru's!

This topic is 4503 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

Pop quiz! You're trying to draw a mesh with two textures and a fixed number of vertices, but the vertices are not static. Which is generally faster? Multitexturing with glVertex3f calls _or_ Two passes, uploading and calling display list (or vertex buffer).

Share this post


Link to post
Share on other sites
Advertisement
Never use glVertex for nontrivial geometry. It is slooooooooooooooow.

In your case, consider VBOs.

Share this post


Link to post
Share on other sites


erm...

"You're trying to draw a mesh with two textures and a fixed number of vertices, but the vertices are not static."

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
You know, quoting someone like that makes you look really unpolite.
Ask Mr. Google for GL_STREAM_DRAW_ARB okay?

Share this post


Link to post
Share on other sites
As the AP points out there are multiple ways to handle VBO data. You can tell the OpenGL state machine that you are more then likely going to be changing the data in the VBO at run time. Display lists are generally used for static geometry, recreating them every time you need them completely trivializes their use.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!