Archived

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

Vlion

Is there an

Recommended Posts

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