dda line algorithm easily create in c using openglopengl bangla tutorials

dda line algorithm easily create in c using opengl|opengl bangla tutorials.I try to show how to easily draw digital differential analyzer line algorithm using opengl c programming.DDA line drawing algorithm is the importent part in computer graphics.I just wanted to explain the source code easily.

Formula of DDA line drawing algorithm:
Step : 1
If the slope is less than or equal to 1, the unit x intervals Dx =1 and compute each successive y values.
Dx =1
m= Dy / Dx
m = (y2 – y1) / 1
m = (yk+1 – yk)/ 1
yk+1 = yk + m

Step : 2
If the slope is greater than 1, the roles of x any y at the unit y intervals Dy =1  and compute each successive x values.

Dy =1
m= Dy / Dx
m = 1 / (x2 – x1)
m = 1 / (xk+1 – xk)
xk+1 = xk + (1/m)

Step : 3
If the processing is reversed, the starting point at the right.

Dx =-1
m= Dy / Dx
m = (y2 – y1) / -1
yk+1 = yk - m

Step : 4
Dy =-1
m= Dy / Dx
m = -1 / (x2 – x1)
m = -1 / (xk+1 – xk)
xk+1 = xk – (1/m)

I believe that if anyone sees this video from the first to the end, he/her can understand how to draw dda line algorithm.I hope you guys this video are so helpful to draw digital differential analyzer line drawing algorithm.

Level 0

আমি সাইফুল ইসলাম। বিশ্বের সর্ববৃহৎ বিজ্ঞান ও প্রযুক্তির সৌশল নেটওয়ার্ক - টেকটিউনস এ আমি 6 বছর 2 মাস যাবৎ যুক্ত আছি। টেকটিউনস আমি এ পর্যন্ত 2 টি টিউন ও 0 টি টিউমেন্ট করেছি। টেকটিউনসে আমার 0 ফলোয়ার আছে এবং আমি টেকটিউনসে 0 টিউনারকে ফলো করি।


টিউনস


আরও টিউনস


টিউনারের আরও টিউনস


টিউমেন্টস