glut/progs/gle/cylinder.c
/* 
 * Initialize a bent shape with three segments. 
 * The data format is a polyline.
 *
 * NOTE that neither the first, nor the last segment are drawn.
 * The first & last segment serve only to determine that angle 
 * at which the endcaps are drawn.
 */
Initialize a bent shape with three segments.
The data format is a polyline.

NOTE that neither the first, nor the last segment are drawn.
The first & last segment serve only to determine that angle
at which the endcaps are drawn.
Initialize a bent shape with three segments . The data format is a polyline . NOTE that neither the first nor the last segment are drawn . The first & last segment serve only to determine that angle at which the endcaps are drawn .
void InitStuff (void) {
   gleSetJoinStyle (TUBE_NORM_EDGE | TUBE_JN_ANGLE | TUBE_JN_CAP);
   COL (0.0, 0.0, 0.0);
   PNT (-6.0, 6.0, 0.0);
   COL (0.0, 0.8, 0.3);
   PNT (6.0, 6.0, 0.0);
   COL (0.8, 0.3, 0.0);
   PNT (6.0, -6.0, 0.0);
   COL (0.2, 0.3, 0.9);
   PNT (-6.0, -6.0, 0.0);
   COL (0.2, 0.8, 0.5);
   PNT (-6.0, 6.0, 0.0);
   COL (0.0, 0.0, 0.0);
   PNT (6.0, 6.0, 0.0);
}
void InitStuff ( void ) { gleSetJoinStyle ( TUBE_NORM_EDGE | TUBE_JN_ANGLE | TUBE_JN_CAP ) ; COL ( 0.0 , 0.0 , 0.0 ) ; PNT ( -6.0 , 6.0 , 0.0 ) ; COL ( 0.0 , 0.8 , 0.3 ) ; PNT ( 6.0 , 6.0 , 0.0 ) ; COL ( 0.8 , 0.3 , 0.0 ) ; PNT ( 6.0 , -6.0 , 0.0 ) ; COL ( 0.2 , 0.3 , 0.9 ) ; PNT ( -6.0 , -6.0 , 0.0 ) ; COL ( 0.2 , 0.8 , 0.5 ) ; PNT ( -6.0 , 6.0 , 0.0 ) ; COL ( 0.0 , 0.0 , 0.0 ) ; PNT ( 6.0 , 6.0 , 0.0 ) ; }
Initialize a bent shape with three segments.
Initialize a bent shape with three segments .
/* initialize the join style here */