Re: [Plib-users] STATES
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2004-07-15 00:14:46
|
Manuel Pecero Rodr=EDguez wrote: > So, in order to add a ssgLeaf to the tree of a Scene I make a=20 > ssgVtxTable *dtl; Then I load on it an ac file with the function=20 > grssgLoadAC3D(const char *filename, const ssgLoaderOptions *options). No, no, no! You need something like: ssgEntity *br =3D ssgLoad ( filename, options ) ) ; if ( br =3D=3D 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: <sjb...@ai...> WorkEmail: <sj...@li...> 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----- |