View Full Version : source code on how to make polylines
Good day! Can you please send me a source code using bresenhams algorithm on how to make polylines using the c++? Please do.. Im just a beginner and i need some information and examples about this program. Thanks!
07-19-2002, 02:59 AM
What do you mean? Bresenham's line drawing algorithm is a an incremental 2D algorithm most commonly used for rasterisation, but useful for other things as well. Search Google for more info.
If you are using OpenGL you do not need to use this to draw polylines, just use something like :
for (i = 0; i < numVerts; i++)
glVertex3f(x[i], y[i], z[i]);
If you're not using OpenGL then you are in the wrong forum on the wrong site.
[This message has been edited by JimmyT (edited 07-19-2002).]
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.