• Advertisement

Archived

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

Is there an

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

OpenGL function to determine whether you are in a glBegin block or not ? Thanks, ~V''lion ~V''lion Bugle4d

Share this post


Link to post
Share on other sites
Advertisement
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