1. Joseph Bane
  2. FFS Pixmap visualization client

Commits

Sherief N. Farouk  committed 320a75d

Added idle().

  • Participants
  • Parent commits 698b375
  • Branches default

Comments (0)

Files changed (1)

File pixmap_viz_client.cpp

View file
 
 void reshape(int Width, int Height);
 
+void idle();
+
 struct client_info
 {
     int width;
     glutKeyboardFunc(keyboard);
     glutDisplayFunc(display);
     glutReshapeFunc(reshape);
+    glutIdleFunc(idle);
     initialize();
     glutMainLoop();
     return 0;
     }
 }
 
+void idle()
+{
+    glutPostRedisplay();
+}
+
 //This function is from http://www.lighthouse3d.com/opengl/glut/index.php?bmpfont
 //(slightly modified for style)
 void render_bitmap_string(