Re: [Plib-users] STATES
Brought to you by:
sjbaker
From: <m_p...@ya...> - 2004-07-15 14:40:08
|
Ok, but I need to change the state (I need an state selector for this object) and if I make it with an ssgEntity * I cannot do it becouse with the ssgEntity class you cannot acces to the ssgLeaf states without a casting. isn´t it? Thank you. Steve Baker <sjb...@ai...> wrote: Manuel Pecero Rodríguez wrote: > So, in order to add a ssgLeaf to the tree of a Scene I make a > ssgVtxTable *dtl; Then I load on it an ac file with the function > grssgLoadAC3D(const char *filename, const ssgLoaderOptions *options). No, no, no! You need something like: ssgEntity *br = ssgLoad ( filename, options ) ) ; if ( br == NULL ) /* some kind of error message */ ; scene -> addKid ( br ) ; Where: 'scene' is some kind of ssgBranch node - maybe the ssgRoot at the top of your tree. ---------------------------- Steve Baker ------------------------- HomeEmail: WorkEmail: HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net -----BEGIN GEEK CODE BLOCK----- GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ -----END GEEK CODE BLOCK----- ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_idG21&alloc_id040&op=click _______________________________________________ plib-users mailing list pli...@li... https://lists.sourceforge.net/lists/listinfo/plib-users --------------------------------- [input] [input] [input] |