Re: [Plib-users] ssgSimpleState question?
Brought to you by:
sjbaker
|
From: Steve B. <sjb...@ai...> - 2002-07-17 01:49:19
|
Allen Yang wrote:
> I tried to use ssgSimpleState class to load different 3ds files based on the
> user's request.
Eh? I think you are a bit confused.
ssgSimpleState is for holding OpenGL state - thing like texture, material properties,etc.
For loading models, use ssgLoad("filename");
To switch between models at runtime, create an ssgSelector object and attach
the two loaded models using an ssgSelector::addKid(child_object) for each
of them - then you can select which one will be drawn using ssgSelector::selectStep(0)
or ssgSelector::selectStep(1).
----------------------------- Steve Baker -------------------------------
Mail : <sjb...@ai...> WorkMail: <sj...@li...>
URLs : http://www.sjbaker.org
http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net
http://prettypoly.sf.net http://freeglut.sf.net
http://toobular.sf.net http://lodestone.sf.net
|