[Plib-users] STATES
Brought to you by:
sjbaker
From: <m_p...@ya...> - 2004-07-14 19:45:15
|
Hi everybody. I´ve a problem and I dont know how to resolve it. I don´t have a lot of experience with PLIB and I thought that maybe someone had this problem before. 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). Till there is everything ok. I can load the ac file in my scene whith out problem, but if I want to acces to the state of the dtl (It doesn´t mind if I use dtl->getState() or dtl->setState(ssgState*)) my program breaks. My code is something like that: char *acname; ssgVtxTable *dtl= new ssgVtxTable; void *hndl = grTrackHandle; dtl= (ssgVtxTable *)grssgLoadAC3D(acname, NULL); /* in acname is the path of the ac file*/ dtl->setState(.....); It compiles and the program runs but it crashes. thank you --------------------------------- [input] [input] [input] |