void PropertyManager::updateMat4(wxPropertyGridManager *pg, std::string label, mat4 a) { std::string s = label + ".Row0.x"; pg->SetPropertyValue(wxString(s.c_str()), a.at(0, 0)); s.clear(); s = label + ".Row0.y"; pg->SetPropertyValue(wxString(s.c_str()), a.at(0, 1)); s.clear(); s = label + ".Row0.z"; pg->SetPropertyValue(wxString(s.c_str()), a.at(0, 2)); s.clear(); s = label + ".Row0.w"; pg->SetPropertyValue(wxString(s.c_str()), a.at(0, 3)); s.clear(); s = label + ".Row1.x"; pg->SetPropertyValue(wxString(s.c_str()), a.at(1, 0)); s.clear(); s = label + ".Row1.y"; pg->SetPropertyValue(wxString(s.c_str()), a.at(1, 1)); s.clear(); s = label + ".Row1.z"; pg->SetPropertyValue(wxString(s.c_str()), a.at(1, 2)); s.clear(); s = label + ".Row1.w"; pg->SetPropertyValue(wxString(s.c_str()), a.at(1, 3)); s.clear(); s = label + ".Row2.x"; pg->SetPropertyValue(wxString(s.c_str()), a.at(2, 0)); s.clear(); s = label + ".Row2.y"; pg->SetPropertyValue(wxString(s.c_str()), a.at(2, 1)); s.clear(); s = label + ".Row2.z"; pg->SetPropertyValue(wxString(s.c_str()), a.at(2, 2)); s.clear(); s = label + ".Row2.w"; pg->SetPropertyValue(wxString(s.c_str()), a.at(2, 3)); s.clear(); s = label + ".Row3.x"; pg->SetPropertyValue(wxString(s.c_str()), a.at(3, 0)); s.clear(); s = label + ".Row3.y"; pg->SetPropertyValue(wxString(s.c_str()), a.at(3, 1)); s.clear(); s = label + ".Row3.z"; pg->SetPropertyValue(wxString(s.c_str()), a.at(3, 2)); s.clear(); s = label + ".Row3.w"; pg->SetPropertyValue(wxString(s.c_str()), a.at(3, 3)); }