Archived

This topic is now archived and is closed to further replies.

Senses777

silly line question

Recommended Posts

Senses777    756
I know this is a stupid question, but I couldn''t find the anser... in DX7 how do you draw a line from one point to another point? is there a function?... in DX8, how do you do this? .sen

Share this post


Link to post
Share on other sites
defster    122
Using DirectDraw, you need to write your own line-draw function from scratch, preferably using the Bresenham algorithm. There are tons of tutorials on this, even on this site.

Its a bit more complicated for DX8, but there is a tutorial about this on this site aswell (One of the "2D drawing using DX8" tutorials). Look them up yourself, i''m too lazy to find the urls

Share this post


Link to post
Share on other sites
Senses777    756
ugh, I just realized that was a bad post, I forgot to look at the tutorials first, lolz. Thanks for reminding me! *smacks head* ok, off to reading! thanks .sen

Share this post


Link to post
Share on other sites