delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/17/03:31:38

From: Jeff Weeks <info AT codex DOT nu>
Newsgroups: comp.graphics.algorithms,comp.os.msdos.djgpp
Subject: Clipping a line to a rect. Need help _fast_!
Date: Fri, 13 Feb 1998 06:13:33 -0500
Organization: Code X Software
Lines: 26
Message-ID: <34E42ADD.1E6B43F3@codex.nu>
NNTP-Posting-Host: snel.execulink.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hello all,

I'm in the process of adding clipping to all my graphics functions to a
library which should have been released weeks ago :(  I've hit a wall
though;  For some reason I can't seem to clip a line to a rectangle!  My
code _almost_ worked, then I tried to fix it, and now it doesn't work at
all!  To add to that, my web redirection seems to be screwed up... but
that's another story.

So, if anybody has some code on how to clip any line, to be constrained
withen a rectangular area, PLEASE send it my way.  I'm running out of
time, and I'd be VERY greatful.

Thanks,
Jeff

PS: Please reply via email if possible.

--------------------------------------------
            - Code X Software -
       Programming to a Higher Power

        email: mailto:info AT codex DOT nu
        web:   http://www.codex.nu/
--------------------------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019