Archived

This topic is now archived and is closed to further replies.

JasonDav

Drawing curves

Recommended Posts

Is there a simple openGL function for drawing curves ? I know a curve can be simulated by drawing hundreds of small lines, but this seems tedious.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
glBegin(...)
for (int x=0; x< 1000; x++)
glVertex(Curvex((float)x/1000),Curvey((float)x/1000),Curvez((float)x/1000));
glEnd();

hmmm not half bad...

Share this post


Link to post
Share on other sites