EZ
Up Prev Next Contents


5.14.7 Tube

void EZ_Tube(float *data, int nsegs, int nsides)

This function renders a tube based on the given data. For example, the following code draws a cone.

static float cone[] = {
-1.0, 0.0, 0.0, 0.0,
 0.0, 0.0, 0.0, 0.5,
 1.0, 0.0, 0.0, 1.0,
};

EZ_Tube(cone, 3, 16);


HTML Documentation Maintainance:Arturo Espinosa <arturo@nuclecu.unam.mx>