- dpy=new Graphics::Display;
- wnd=new Graphics::Window(*dpy, screen_w, screen_h);
- glc=new Graphics::GLContext(*wnd);
-
- wnd->signal_close.connect(sigc::bind(sigc::mem_fun(this, &Designer::exit), 0));
- wnd->signal_key_press.connect(sigc::mem_fun(this, &Designer::key_press));
- wnd->signal_key_release.connect(sigc::mem_fun(this, &Designer::key_release));
- wnd->signal_button_press.connect(sigc::mem_fun(this, &Designer::button_press));
- wnd->signal_pointer_motion.connect(sigc::mem_fun(this, &Designer::pointer_motion));
-
- wnd->show();
-
- glEnableClientState(GL_VERTEX_ARRAY);
- glEnable(GL_DEPTH_TEST);
- glEnable(GL_BLEND);
- glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
- glEnable(GL_CULL_FACE);
-
- GL::Texture2D *font_tex=new GL::Texture2D;
- font_tex->set_min_filter(GL::LINEAR);
- font_tex->load_image("dejavu-20.png");
- font=new GL::Font();
- font->set_texture(*font_tex);
- DataFile::load(*font, "dejavu-20.font");
-
- mode=SELECT;
-
- Application::main();