add: win->frameExit();
context: display(void){    // do the motion in OpenGl, to stay independent of the ransform node    // use the draw action to check the material    float a = glutGet( GLUT_ELAPSED_TIME );    if ( (int) ( a / 2000 ) & 1 )        glPolygonMode( GL_FRONT_AND_BACK, GL_LINE );    else        glPolygonMode( GL_FRONT_AND_BACK, GL_FILL );    glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );    glPushMatrix();    glRotatef( a / 20, 0,0,1 );    dact->apply( plane );    glPushMatrix();    glTranslatef( 0,0,fabs(sinf(a/3000 * Pi))*2 );    glRotatef( (a/3000) * 360 / 2, 1,0,0 );    dact->apply( torus );    glPopMatrix();    glPopMatrix();    glutSwapBuffers();}