Re: [Plib-devel] ssg animation
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2000-07-18 22:07:03
|
> Dave McClurg wrote: > > 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? We need to preserve the current functionality of 'select(unsigned int)' then - and add a new 'select(unsigned int *)' to allow you to pass an array of select bits or something. Yep - that'll work. -- Steve Baker HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://web2.airmail.net/sjbaker1 Projects : http://plib.sourceforge.net http://tuxaqfh.sourceforge.net http://tuxkart.sourceforge.net http://prettypoly.sourceforge.net |