Re: [Plib-devel] ssg states followup
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2000-03-01 04:55:42
|
"Curtis L. Olson" wrote: > > Steve, > > I think I stumbled on the answer to my previous question ... just call > my_state->force() ... right? > > Hmmm, it's even there in the docs, fancy that. *ouch*!! :-) > Ok, one more question. Is it legal to use ssgSimpleStates to control > *all* the states that you can glEnable and glDisable? I'm thinking > about things like GL_FOG, GL_DEPTH_TEST, GL_CULL_FACE, etc. No - I had great heartache over that. I decided to stick to those states that you are likely to want to set and unset rapidly in a 'typical' application. That keeps to a minimum the amount of state *testing* for each leaf node as it's rendered. It would be a pretty weird application that needed to switch Fog and Depth-test on a per-leaf-node basis. Of course GL_CULL_FACE is set per ssgLeaf node - so you don't want to mess with ssgState's for that. -- Steve Baker http://web2.airmail.net/sjbaker1 sjb...@ai... (home) http://www.woodsoup.org/~sbaker sj...@ht... (work) |