Exemple #1
0
void reshapefunc(int width,int height)
   {
   winwidth=width;
   winheight=height;

   glViewport(0,0,width,height);

   displayfunc();
   }
void
displayfunc(graphics& g, F f){
	displayfunc(boost::function<void()>(boost::bind(&graphics::render, &g)));
	g.displayfunc_.connect(boost::function<void()>(f));
}