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: :glutIdleFunc flicker

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2008
    Posts
    2

    :glutIdleFunc flicker

    I need to draw two objects.

    1st object needs to move when i use keyboard.
    2nd object needs to move but is independent of user action(neither keyboard or mouse).I used glutIdleFunc to implement 2nd object.
    //callback idle
    void idle()
    {
    glutPostRedisplay();
    }
    I have enabled glut_double in main and glutswapbuffer in display callback.
    There is lot of flickering when i implement this how can i avoid it.

  2. #2
    Member Regular Contributor
    Join Date
    Feb 2002
    Posts
    377

    Re: :glutIdleFunc flicker

    I don't see anything wrong with that. Can you show us some more code?

Posting Permissions

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