static void glwRedrawFunc(QGLViewer* w,void * user_data) { glEnable(GL_DEPTH_TEST); Viewer *vw = (Viewer*)w; vw->draw(); }