Dead Hackers Society
Other BBSes »
 
 
Demoscene  Coding  CT60  Buy/sell

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]

Topic Posted by  Date 
Clipping optimisation ? Laurent / Thadoss Feb,08.2013-20:56
  Re: Clipping optimisation ? Corbo Feb,12.2013-02:53
    Re: Clipping optimisation ? Laurent / Thadoss Feb,12.2013-21:30
      Re: Clipping optimisation ? mikro Feb,13.2013-11:08
      Re: Clipping optimisation ? ggn Feb,13.2013-14:40
        Re: Clipping optimisation ? Laurent / Thadoss Feb,14.2013-10:37
          Re: Clipping optimisation ? Laurent / Thadoss Feb,14.2013-14:26


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

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.
© 1994-2024 Dead Hackers Society Contact: Anders Eriksson