Jump to content
  • Advertisement

Archived

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

Vlion

Is there an

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

Advertisement
No.

Why would you need a function to tell you that? You, as the programmer, should *always* know whether you''re within a glBegin()/glEnd() block.

Share this post


Link to post
Share on other sites
Because I will be moving from object to object- sometimes I want to ensure that the glBegin flag really is on.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
... i don''t think you quite understand what glBegin and glEnd do... you glBegin, draw the object, glEnd, draw the next object.

Share this post


Link to post
Share on other sites
*sigh*
OK.
What I will be doing is tranferring program control from function to function to function.
I would have liked a method to make sure glEnd had not been called prematurely.
Oh well, I guess I''ll implement it in my code.

Share this post


Link to post
Share on other sites
if i question u if exists a functions to know if i''m in a {} (Begin/End of the program) block on C++ what u anwser? it''s the same thing

sorry about my english :|

_,,,^Ó..ò^,,,_

Share this post


Link to post
Share on other sites
Well you can call:
glBegin
again and if it returns GL_INVALID_OPERATION then you are in a glBegin...glEnd block.
Just a dirty trick.

"C lets you shoot yourself in the foot rather easily. C++ allows you to reuse the bullet!"

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!