Re: [Plib-devel] ssg state question
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2000-03-01 04:47:53
|
"Curtis L. Olson" wrote: > > Steve, > > There are several places in my program where I'm rendering things > outside of the ssg scene graph. These other sections require various > opengl state changes. > > What I'd like to do is create ssgSimpleStates to encapsulate these > changes so I can use ssg's lazy state evaluator technology. My goal > is to bury _all_ opengl state changes inside of ssgSimpleStates. > > Is there a way apply an ssgSimpleState without having it attached to > an ssgEntity and thus be automatically applied during > ssgCullAndRender() ? Yep - you can call: mystate -> apply () ; ...to apply the state 'lazily' (ie to set only those things that SSG *thinks* need to be changed) - or if you are deep ing state-hell: mystate -> force () ; ...to force SSG to set every single itty-bitty state element to this state's setup. You also might want to check out the new ssgContext stuff. It's in the new online manual. -- Steve Baker http://web2.airmail.net/sjbaker1 sjb...@ai... (home) http://www.woodsoup.org/~sbaker sj...@ht... (work) |