Problems about Bresenham line algorithm...

  • Follow


how can I implement the Bresenham midpoint alogrithm for scan converting
horizontal and vertical lines, and lines with slopes of +/- 1?


Thanks in advance~


0
Reply Tcc 3/15/2005 7:15:01 PM

Tcc wrote:
> how can I implement the Bresenham midpoint alogrithm for scan converting
> horizontal and vertical lines, and lines with slopes of +/- 1?
> 
> 
> Thanks in advance~
> 
> 
i would google for it or ask in comp.graphics.algorithms... or read the 
faq of comp.graphics.algorithms...
0
Reply David 3/15/2005 7:22:12 PM


Tcc wrote:
> how can I implement the Bresenham midpoint alogrithm for scan converting
> horizontal and vertical lines, and lines with slopes of +/- 1?
> 

In OpenGL? The line algorithm depends on the
driver...



-- 
<\___/>
/ O O \
\_____/  FTB.    For email, remove my socks.
0
Reply fungus 3/16/2005 1:47:11 AM

Tcc wrote:

> how can I implement the Bresenham midpoint alogrithm for scan converting
> horizontal and vertical lines, and lines with slopes of +/- 1?

Why would you want to implement a line drawing algorithm in OpenGL? It
already can draw lines.

0
Reply Rolf 3/16/2005 7:28:24 PM

This day of Wed, 16 Mar 2005 20:28:24 +0100, Rolf Magnus <ramagnus@t-online.de>
saw fit to scribe:

>Tcc wrote:
>
>> how can I implement the Bresenham midpoint alogrithm for scan converting
>> horizontal and vertical lines, and lines with slopes of +/- 1?
>
>Why would you want to implement a line drawing algorithm in OpenGL? It
>already can draw lines.

You might want to do it e.g. for a homework assignment. The first programming
assignment in the intro graphics class here is to write a small OpenGL Paint
application in that uses Bresenham for its line-drawing.

That being said, people probably shouldn't be asking for their homework to be
done by others on NGs. :-)

-- 
~david-haley
david-usenet@the-haleys.com
(no unmunging necessary)
---------------------------
0
Reply David 3/17/2005 3:05:31 AM

4 Replies
579 Views

(page loaded in 0.086 seconds)

Similiar Articles:













7/23/2012 4:04:16 PM


Reply: