|
-
Jun 12th, 2000, 03:36 PM
#1
Thread Starter
Hyperactive Member
I got the x and y coordinates of the pointer. How to draw a line with that coordinates. I can´t use Direct draw ( sitting on a NT station). I have some idea of catch the movement in shootergames like Q3. Then i can compare it to other gamers. Good idea?
-
Jun 13th, 2000, 12:43 AM
#2
PowerPoster
To draw a line you may use the LineTo API call which should work for NT too...
-
Jun 13th, 2000, 03:33 AM
#3
So Unbanned
Use the .line function:
Code:
Form1.line (x1,y1)-(x2,y2)
than you can draw a line from x2, y2 to a new point like this:
Form1.line -(x3,y3)
.line works with picturebox and other stuff.
Good luck,
-
Jun 13th, 2000, 05:40 AM
#4
transcendental analytic
Fox, how do you use colors with LineTo?
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Jun 13th, 2000, 06:13 AM
#5
PowerPoster
You have to create a brush, apply it to the DC and then draw the line..
-
Jun 13th, 2000, 12:25 PM
#6
Thread Starter
Hyperactive Member
-
Jun 13th, 2000, 04:02 PM
#7
transcendental analytic
Fox, can you give me a code sample, since my didn't work
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|