RE: [Plib-devel] Texture and blend modes
Brought to you by:
sjbaker
From: Ben W. <be...@bg...> - 2000-08-21 18:10:21
|
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 -----Original Message----- From: Curtis L. Olson [mailto:cu...@me...] Sent: Monday, August 21, 2000 3:06 PM To: pli...@li... Subject: Re: [Plib-devel] Texture and blend modes Steve Baker writes: > glPushAttrib/glPopAttrib ? > > Call one in pre-draw and the other in post-draw. Those are nifty little calls, when did they get added? :-) So you are saying I could do something like the following: static int predraw( ssgEntity *e ) { glPushAttrib( GL_ENABLE_BIT | GL_DEPTH_BUFFER_BIT ); glDisable( GL_DEPTH_TEST ); glDisable( GL_FOG ); return true; } static int postdraw( ssgEntity *e ) { glPopAttrib(); return true; } This unfortunately yields rendering problems ... can you see anything obvious that I am doing wrong or misunderstanding here? 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 _______________________________________________ plib-devel mailing list pli...@li... http://lists.sourceforge.net/mailman/listinfo/plib-devel |