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: About glutPostRedisplay()

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2004
    Posts
    2

    About glutPostRedisplay()

    Hello,

    I'm making a simple program in OpenGL that displays a quad. I have idle function that increments a global "time" variable so that I can alter my model as time progresses to create a sort of animation effect.

    void idle()
    {
    time += 0.01f;
    glutPostRedisplay();
    }

    But the problem is that as soon as this glutPostRedisplay is called my model disappears instantly and screen turns out to be black. Any clues why ?

    The same problem appears if I just resize my window i.e. maximize it. Why this redrawing problem any idea ?

    ~ Thanks in advance

  2. #2
    Junior Member Newbie
    Join Date
    Apr 2004
    Location
    Spain
    Posts
    14

    Re: About glutPostRedisplay()

    You should post your Display function here to make sure what it actually does.

Posting Permissions

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