+ Handle wnd=XCreateWindow(display, root, 0, 0, options.width, options.height, 0, vi->depth, InputOutput, vi->visual, CWColormap, &attr);
+ set_window(wnd);
+
+ glx_wnd=glXCreateWindow(display, config[0], wnd, 0);
+
+ glXMakeContextCurrent(display, glx_wnd, glx_wnd, context);
+
+ XFree(config);
+}
+
+void GLWindow::on_event(const XEvent &event)
+{
+ if(event.type==ConfigureNotify)
+ glViewport(0, 0, options.width, options.height);