Drawing curves
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.
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...
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...
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement