Path: utzoo!censor!geac!torsqnt!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!cs.utexas.edu!usc!sdd.hp.com!spool.mu.edu!uunet!mcsun!hp4nl!nikhefh!x51 From: x51@nikhefh.nikhef.nl (Excursiecommissie) Newsgroups: comp.sys.acorn Subject: Re: Drawing lines in C Message-ID: <1160@nikhefh.nikhef.nl> Date: 27 Feb 91 18:16:01 GMT References: <8671@castle.ed.ac.uk> <1991Feb25.081646.15077@alzabo.ocunix.on.ca> Sender: x51@nikhef.nl (Excursiecommissie) Reply-To: x51@nikhefh.nikhef.nl (Excursiecommissie) Organization: Nikhef-H, Amsterdam (the Netherlands). Lines: 21 In article <1991Feb25.081646.15077@alzabo.ocunix.on.ca> andras@alzabo.UUCP (Andras Kovacs) writes: >In article <8671@castle.ed.ac.uk> ecwu61@castle.ed.ac.uk (R Renwick) writes: >> I want to plot lines on the screen in C, not under the wimp. >>How can I do it??? I can't seem to find an example anywhere. > > Here is an implementation of Bresenham's algorithm for line drawing. >Please don't judge my programming from this example :-); it is just to pass Jezus! (sorry), why do you want to do this on an Archimedes?????? Ok, it is interesting to see the Bresenham algorithm. But since the operating system supports lines (and other graphics stuff), why should you go wild and implement your own line routines in C? for speed? The OS routines are in Arm code, if you want them to be faster, rewrite them again in Arm code, not in C. NO, I DON'T WANT A LANGUAGE DISCUSSION AGAIN!!! Remember that Risc OS is an Operating System, which supports the programmer, and not a Disc Filer (like DOS), which hinders the programmer. Axel