// Draw this panel. void PreferencesPanel::Draw() { glClear(GL_COLOR_BUFFER_BIT); GameData::Background().Draw(Point(), Point()); Information info; info.SetBar("volume", Audio::Volume()); GameData::Interfaces().Get("menu background")->Draw(info, this); string pageName = (page == 'c' ? "controls" : page == 's' ? "settings" : "plugins"); GameData::Interfaces().Get(pageName)->Draw(info, this); GameData::Interfaces().Get("preferences")->Draw(info, this); zones.clear(); prefZones.clear(); if(page == 'c') DrawControls(); else if(page == 's') DrawSettings(); else if(page == 'p') DrawPlugins(); }