PDA

View Full Version : opengl program required



vindhya
07-18-2014, 11:32 PM
hi
i need program to implement bresenham's algorithm with all slope values using opengl

Agent D
07-19-2014, 06:36 AM
OpenGL(R) has line drawing functionallity. Whether Bresenham's or Xiaolin Wu's algorithm is used, or whether the line is rendered as two thin triangles depends on the driver.

I can't thing of a way this task requres OpenGL(R) in any way whatsoever.

Bresenham's algorithm (https://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm) is idiotically simple to implement. Do your homework yourself.