RE: [Plib-devel] ssg animation
Brought to you by:
sjbaker
From: Dave M. <Dav...@dy...> - 2000-07-18 15:15:28
|
Steve wrote: > > ssgSelector would allow more than 32 frames by adding a > > max_kids param to the constructor > > What about the current ability (which I use quite a bit) to > pass an integer mask with one bit per child object to > enable you to select multiple child objects at once? > i was thinking that ssgSelector would replace the bitset with an array of bools. select() would be rewritten as: void select ( unsigned int s ) { for ( int i=0; i<max_kids && i<32; i++ ) selection [i] = ( (1<<i) & s ) != 0 ; } does that work for you? > Yes - but there are times when frame-locked synchronisation > is *CRITICAL*. > > One example is in a weather simulation model we have at work that does > lightning bolts... cool example. i'll have to remember that. > > Please tell me your thoughts > > Wibble, wibble, wibble. > > -- You did ask. :-) > lol. --Dave McClurg |