Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Forcing GL to draw

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2005
    Posts
    26

    Forcing GL to draw

    Hi everybody!

    Problem: I have some heavy computation on geometric data and want the intermediate results to be displayed. During the computation i cannot call glutPostRedisplay because this has only effect in the next iteration through glutMainLoop. But that iteration will be after the computations are done. So I tried calling the display method directly which sometimes works (when the comptations are not so demanding on the CPU) and sometimes doesn't. Is there an elegant solution to this problem?

    Thanks for your help!

  2. #2
    Guest

    Re: Forcing GL to draw

    if i understand you: glFlush

    if you are using glut: all rendering functions in glutDisplayFunc

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •