Advertisement

Drawing a line between two points

Started by March 21, 2000 04:42 PM
0 comments, last by casper 24 years, 5 months ago
I want to be able to click the mouse in two points and fill the space between the two points with a line and eventually a wall, how would I go about doing this?. I know there is a function that can assist me in the Win32 API but I''m not familiar enought with it to know. Thanks Gamers, casper
...for over a thousand years the Jedi Knights have been the guardians of peace and justice..before the dark times..before the EmpireCasper..
Do you mean in DirectX, or just windows by itself? if you mean just windows, it has a line-drawing function, as well as a rectangle and an ellipse drawing function.
you need a handler to the device content (i.e dc), and you''ll need to declare a CRect strucutre, and pass dc.Rectangle (&myrect); to draw a rectangle. (im assuminf you can handle the handler and other specific details. as for the line, just search throught the help file to find it.

This topic is closed to new replies.

Advertisement