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 3 of 3

Thread: glutPostRedisplay problems

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2004
    Location
    Sao Paulo, SP, Brazil
    Posts
    2

    glutPostRedisplay problems

    Hello there, I'm Marcio Ribeiro from Brazil and just started out trying to write some C + OpenGL (GLUT) code.
    I did managed to write some stuff that rotates a Torus (doughnut) with keyboard interaction (when i press r it rotates clockwise and with R anti-clockwise), so far so good. The problem appears when i just keep r or R pressed, i can clearly see the window redrawing itself (glutPostRedisplay calling my display backend), is there anyway to make it smoother (like games does)?

    My machine isnt too fast (Celeron 400Mhz, 128Mb RAM, ATI Rage 3D Pro) tough.

    Thanks for any help.
    My mail: mmr@b1n.org
    ---
    Bombing for peace is like ****ing for Virginity

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,096

    Re: glutPostRedisplay problems

    You want to use double buffering, check out some of my glut examples on my website www.angelfire.com/linux/nexusone/


    Originally posted by mmr:
    Hello there, I'm Marcio Ribeiro from Brazil and just started out trying to write some C + OpenGL (GLUT) code.
    I did managed to write some stuff that rotates a Torus (doughnut) with keyboard interaction (when i press r it rotates clockwise and with R anti-clockwise), so far so good. The problem appears when i just keep r or R pressed, i can clearly see the window redrawing itself (glutPostRedisplay calling my display backend), is there anyway to make it smoother (like games does)?

    My machine isnt too fast (Celeron 400Mhz, 128Mb RAM, ATI Rage 3D Pro) tough.

    Thanks for any help.
    My mail: mmr@b1n.org

  3. #3
    Junior Member Newbie
    Join Date
    Feb 2004
    Location
    Sao Paulo, SP, Brazil
    Posts
    2

    Re: glutPostRedisplay problems

    Ahh, nice
    Its smooth now.

    Thank you.

    Originally posted by nexusone:
    You want to use double buffering, check out some of my glut examples on my website www.angelfire.com/linux/nexusone/


    ---
    Bombing for peace is like ****ing for Virginity

Posting Permissions

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