[Plib-users] ssgSimpleState question?
Brought to you by:
sjbaker
|
From: Allen Y. <ay...@wr...> - 2002-07-16 18:23:45
|
Hi,
I tried to use ssgSimpleState class to load different 3ds files based on the
user's request.
However, I couldn't make it work at all. It won't load 3ds files.
I was wondering if there is anyway I can use ssgSimpleState class to load
3ds files. I am attaching my code here.
if (m_pState == NULL ) m_pState = new ssgStateSelector(2);
if (m_pSub == NULL) m_pSub = new ssgSimpleState;
if (m_pCarrier == NULL) m_pCarrier = new ssgSimpleState;
m_pState->setStep(0, m_pSub);
m_pState->setStep(1, m_pCarrier);
m_pSub = ssgLoad3ds ("latestSEAWOLF.3DS");
m_pCarrier = ssgLoad3ds ("02carrier.3DS");
ssgLeaf *OS_obj ->setState(m_pState);
ssgLeaf *carrier_obj ->setState(m_pState);
if (!carrier)
m_pState->selectStep(0);
else
m_pState->selectStep(1);
m_OS->addKid ( OS_obj ) ;
ssgFlatten ( OS_obj ) ;
ssgStripify ( m_OS ) ;
Thank you for help.
|