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: How to draw point by point

  1. #1
    Guest

    How to draw point by point

    Hello,
    I am going to draw 5 segments in my program. But I want to draw them one by one, this means after drawing the first line segment, the second segment will be appeared on the screen after a few seconds and vice versa. How to do that ? Any source code can provide for reference? Thanks for giving help !

  2. #2
    Intern Contributor
    Join Date
    Jun 2003
    Location
    Blacksburg, VA 24060, USA
    Posts
    61

    Re: How to draw point by point

    What u want to do is Animation.
    For animation u need Timer

    If u are using GLUT, Use glutTimerFunc
    or Call glutGet(GLUT_ELAPSED_TIME) every time
    u display some thing. These things basically to keep track of time.

    One ur program is 'time-aware', it can decide, what to draw and when.

    - Chetan

Posting Permissions

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