RE: [Plib-devel] Texture and blend modes
Brought to you by:
sjbaker
From: Curtis L. O. <cu...@me...> - 2000-08-21 18:25:22
|
Ben Woodhead writes: > I think that glpopattrib(); will pop all attributes including anything you > have changed other then the gl_depth and gl_fog. Perhaps you want to > specific ones. > > Later Ben > I will have a look in my book about that. Later From reading the man pages, my understanding is that you feed glPushAttrib() a mask which is usually an "or'd" list of attributes you are interested in preserving. Question ... in the man page GL_DEPTH_TEST and GL_FOG are both listed under multiple "bits". Does this mean I can pick one or the other? Do I need all of them? The prototype for glPopAttrib() is "void glPopAttrib( void )". My understanding is that it just takes the top thing off the stack and restores which ever states had been previously pushed there. My code doesn't work though ... this could be due to: a) my misunderstanding of how these things really work. b) $#@$#@ mesa bugs ^^^^^^ -> is this ok for the .mil filter? :-) But, I haven't seen mesa break this badly before so perhaps (a) is more likely? Curt. -- Curtis Olson Human Factors Research Lab Flight Gear Project Twin Cities cu...@hf... cu...@fl... Minnesota http://www.menet.umn.edu/~curt http://www.flightgear.org |