Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

OpenGL program to draw a line using dda algorithm

Below is the Opengl Computer Graphics program to draw a line using Dda Algorithm (digital differential analyzer algorithm).

void glBegin(Glenum mode);
// delimit the vertices of a primitive or a group of like primitives

void glEnd(void);
// delimit the vertices of a primitive or a group of like primitives

void glClear(GLbitfield  mask);
// clear preset values of buffer

void glVertex2d(GLdouble x,  GLdouble y);
// specifies vertex

void glFluch(void);
// force execution of GL commands in finite time



This post first appeared on Ask For Program, please read the originial post: here

Share the post

OpenGL program to draw a line using dda algorithm

×

Subscribe to Ask For Program

Get updates delivered right to your inbox!

Thank you for your subscription

×