2 #include "cocoadisplay.h"
4 #include "display_private.h"
11 Display::Display(const std::string &):
14 priv->display = create_display();
19 destroy_display(priv->display);
23 void Display::set_mode(const VideoMode &, bool)
25 throw runtime_error("video mode switching not supported");
28 bool Display::process_events()
31 if(!get_event(priv->display, &event.cevent))
34 map<WindowHandle, Window *>::iterator i = priv->windows.find(event.cevent.any.window);
35 if(i!=priv->windows.end())
36 i->second->event(event);
41 void Display::check_error()
45 } // namespace Graphics