Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Sta7ic

Multiple Arrays Question

This topic is 5899 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''m trying to draw several arrays, and looking back over my code, there''s gotta be something simpler or more effective than turning the client array states on and off for every model, since some will use textures, others color w/o texture, and not all will be normalized. Are there ways to zero the array pointers without having to us glEnableClientState() to flip settings on and off all the time? -Sta7ic

Share this post


Link to post
Share on other sites
Advertisement
There''s always glPush/Pop[Client]Attrib. That''s a way, but I don''t know if there''s a better one or not.

Share this post


Link to post
Share on other sites
enablin/disabling is not as much performance hit as changing textures or blending modes. But try to minimize state changes with some sorting before you draw

You should never let your fears become the boundaries of your dreams.

Share this post


Link to post
Share on other sites

  • 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!