////////////////////////////////////////////////////////////////////////// //函数:Load() //参数:3ds文件名 //功能:加载3ds文件 ////////////////////////////////////////////////////////////////////////// void Menu::Load(char *filename) { Model model; model.Clear(); model.Import3DS(filename); m_listNum=glGenLists(1); glNewList(m_listNum,GL_COMPILE); glPushMatrix(); model.DrawModel(); glPopMatrix(); glEndList(); model.Clear(); }
void ModelViewer::Cleanup( void ) { m_Model.Clear(); delete m_pCameraController; m_pCameraController = nullptr; }