stepwolf
04-15-2004, 04:25 AM
Hi!
I am a new user of opengl.
I want to draw a vector which moving in a certain path. I set 2 point to draw the line .
the follow is my step:
1. draw the vector in p1(point1).
2. draw a line from p1 to p2(point2).
3. draw the same vector in p1 in XOR method
4. draw the vector in p2.
5. send p2 valve to p1
6.get new valve and send it to p2
redo and redo step2-6.
The effect is like i draw a line in the paper using a pen,and i can see the pen is moving.
The quesitin is how can i achieve step 3,and treat me as a 3year old and teel me step by step.
thank you very much!
I am a new user of opengl.
I want to draw a vector which moving in a certain path. I set 2 point to draw the line .
the follow is my step:
1. draw the vector in p1(point1).
2. draw a line from p1 to p2(point2).
3. draw the same vector in p1 in XOR method
4. draw the vector in p2.
5. send p2 valve to p1
6.get new valve and send it to p2
redo and redo step2-6.
The effect is like i draw a line in the paper using a pen,and i can see the pen is moving.
The quesitin is how can i achieve step 3,and treat me as a 3year old and teel me step by step.
thank you very much!