Re: [Plib-devel] Texture and blend modes
Brought to you by:
sjbaker
From: Curtis L. O. <cu...@me...> - 2000-08-21 18:05:47
|
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 |