void CglicScene::resetAll(){ while(transform.lastMatrices.size()>0) undoLast(); for(int i = 0 ; i < listObject.size() ; i++) listObject[i]->resetAll(); m_cam = glm::vec3(1,1,1); m_up = glm::normalize(glm::vec3(-1, 1., -1)); view->zoom = 1.0f; }
void CglObject::resetAll() { while(transform.lastMatrices.size()>0) undoLast(); }