Bresenham’s Line Drawing Algorithm in C

at 10:35 pm

While working on a project for graphics, I needed some information on Bresenham’s line drawing algorithm, a.k.a. the midpoint line drawing algorithm, most specifically doing it in C for OpenGL. There was pretty much little or bad information out there or it was some parts making sense, others not. Here is my rendition of the algorithm:

http://crackinwise.pastebin.com/f65383521

This is a C-language version of the code that uses OpenGL points to draw the line. This is just the line drawing algorithm, so if you want to use this in any sort of OpenGL application, you will need to write the rest of your own OGL application.

Good stuff.

bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

4 Responses

  1. kumar vicky Says:

    nice

  2. kumar vicky Says:

    nice hlping me

  3. Anonymous Says:

    very bad..no code

  4. Kler_Lyday Says:

    lesbians in jizz coed sex video free ebony porn site reviews swingers sex party cast leo man in sex and love sex before psa test ass chat program suck yahoo shaved porn videos knightley hentai bowling pin ass brittany spears sex tape free fleshbot percent of men look at porn nude schoolgirl porn gangbang black porn daily porn games sex stories charity auction hummer zahopoulos sex video east lothian sex free adult pics sex en language live sex

Leave a Reply