COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### Problems about Bresenham line algorithm...

• Email
• Follow

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

```
 0

See related articles to this posting

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

```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

```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

```
 0

```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

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