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: move a line

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2003
    Posts
    3

    move a line

    hello,
    How can I move a line? Do I have to draw a line and delete it and then draw a new line with decrement y coordinate. Is there any method for this? I couldn't find any.
    thank you for your help

  2. #2
    Intern Contributor
    Join Date
    Jan 2003
    Location
    Wisconsin
    Posts
    64

    Re: move a line

    You should be completely erasing the window and redrawing the line every frame anyway, so you're supposed to just draw the line somewhere else in the next frame. OpenGL doesn't remember that the pixels you drew to the screen were a line when you drew them, so you can't exactly "move" them after they've been drawn.

Posting Permissions

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