static float alpha = 90.0;
static float beta = 90.0;
-static int fog = 0;
+static int fog = 1;
static int bfcull = 1;
static int usetex = 1;
static int cstrip = 0;
XMesaSetFXmode(fullscreen ? XMESA_FX_FULLSCREEN : XMESA_FX_WINDOW);
break;
#endif
-
case 'j':
joyactive = (!joyactive);
break;
fprintf(stderr, "Done.\n");
break;
}
+ glutPostRedisplay();
}
static void
}
}
+static void
+idle(void)
+{
+ glutPostRedisplay();
+}
+
+
+
int
main(int ac, char **av)
{
glutDisplayFunc(draw);
glutKeyboardFunc(key);
glutSpecialFunc(special);
- glutIdleFunc(draw);
+ glutIdleFunc(idle);
glEnable(GL_BLEND);
/*glBlendFunc(GL_SRC_ALPHA_SATURATE,GL_ONE); */