瀏覽代碼

added a proper idle() function

tags/mesa_3_5
Brian Paul 25 年之前
父節點
當前提交
e188b6e1f1
共有 1 個文件被更改,包括 8 次插入1 次删除
  1. 8
    1
      progs/demos/fire.c

+ 8
- 1
progs/demos/fire.c 查看文件

@@ -493,6 +493,13 @@ drawfire(void)
}


static void
idle(void)
{
glutPostRedisplay();
}


static void
special(int key, int x, int y)
{
@@ -720,7 +727,7 @@ main(int ac, char **av)
glutKeyboardFunc(key);
glutSpecialFunc(special);
glutDisplayFunc(drawfire);
glutIdleFunc(drawfire);
glutIdleFunc(idle);
glutReshapeFunc(reshape);
glutMainLoop();


Loading…
取消
儲存