void V4SceneGraph::LoadFileOld(const char *path) { m_pService = new V4Service(path); gf_term_attach_service(m_term, m_pService->m_pNetClient); m_pIs = m_term->root_scene; m_pSg = m_pIs->graph; gf_term_play_from_time(m_term, 0); while(!m_pIs->graph_attached) {} // CreateDictionnary crashes because the root node in m_pSg is not set. CreateDictionnary(); }
wxGPACPanel::wxGPACPanel(V4SceneManager *parent, const char *path) { this->parent = parent; m_term = NULL; m_pService = NULL; // Initializes the MPEG-4 terminal GPACInit(this, &m_term, &m_user, true); if (!m_term) return; // Setting all the variables needed for picking of objects. m_iDragging = 0; m_transformMode = 0; dragX = dragY = 0; picked = NULL; if (path) { m_pService = new V4Service(path); gf_term_attach_service(m_term, m_pService->GetServiceInterface()); } }