|
Atari coding BBS
Re: Clipping optimisation ? |
Posted by: Laurent / Thadoss
|
Feb,12.2013-21:30
|
Corbo .... Trop cool de te retrouver !!! ;)
After all these years.
In fact, x1, y1 and x2,y2 are 2 points (for a line drawing).
I just wanted to know if there's a better way to clip the line on the edges of the screen without :
1) computing the whole line equation,
or
2) looping with incrementing Dx/Dy as long as I reach the screen egde.
I've already implemented the first one in my code and it works, so, my question was just for curiosity.
Corbo, What do you become ?
Best regards
Laurent
|
[All messages in this thread] [Start new thread]
What's the anti-troll code? That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
|