glut/progs/gle/joinoffset.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) {
   COL (0.0, 0.0, 0.0);
   PNT (16.0, 0.0, 0.0);
   COL (0.2, 0.8, 0.5);
   PNT (0.0, -16.0, 0.0);
   COL (0.0, 0.8, 0.3);
   PNT (-16.0, 0.0, 0.0);
   COL (0.8, 0.3, 0.0);
   PNT (0.0, 16.0, 0.0);
   COL (0.2, 0.3, 0.9);
   PNT (16.0, 0.0, 0.0);
   COL (0.2, 0.8, 0.5);
   PNT (0.0, -16.0, 0.0);
   COL (0.0, 0.0, 0.0);
   PNT (-16.0, 0.0, 0.0);
   C_PNT (-0.8, -0.5);
   C_PNT (-1.8, 0.0);
   C_PNT (-1.2, 0.3);
   C_PNT (-0.7, 0.8);
   C_PNT (-0.2, 1.3);
   C_PNT (0.0, 1.6);
   C_PNT (0.2, 1.3);
   C_PNT (0.7, 0.8);
   C_PNT (1.2, 0.3);
   C_PNT (1.8, 0.0);
   C_PNT (0.8, -0.5);
   gleSetJoinStyle (TUBE_JN_ANGLE | TUBE_CONTOUR_CLOSED | TUBE_JN_CAP);
}
void InitStuff ( void ) { COL ( 0.0 , 0.0 , 0.0 ) ; PNT ( 16.0 , 0.0 , 0.0 ) ; COL ( 0.2 , 0.8 , 0.5 ) ; PNT ( 0.0 , -16.0 , 0.0 ) ; COL ( 0.0 , 0.8 , 0.3 ) ; PNT ( -16.0 , 0.0 , 0.0 ) ; COL ( 0.8 , 0.3 , 0.0 ) ; PNT ( 0.0 , 16.0 , 0.0 ) ; COL ( 0.2 , 0.3 , 0.9 ) ; PNT ( 16.0 , 0.0 , 0.0 ) ; COL ( 0.2 , 0.8 , 0.5 ) ; PNT ( 0.0 , -16.0 , 0.0 ) ; COL ( 0.0 , 0.0 , 0.0 ) ; PNT ( -16.0 , 0.0 , 0.0 ) ; C_PNT ( -0.8 , -0.5 ) ; C_PNT ( -1.8 , 0.0 ) ; C_PNT ( -1.2 , 0.3 ) ; C_PNT ( -0.7 , 0.8 ) ; C_PNT ( -0.2 , 1.3 ) ; C_PNT ( 0.0 , 1.6 ) ; C_PNT ( 0.2 , 1.3 ) ; C_PNT ( 0.7 , 0.8 ) ; C_PNT ( 1.2 , 0.3 ) ; C_PNT ( 1.8 , 0.0 ) ; C_PNT ( 0.8 , -0.5 ) ; gleSetJoinStyle ( TUBE_JN_ANGLE | TUBE_CONTOUR_CLOSED | TUBE_JN_CAP ) ; }
Initialize a bent shape with three segments.
Initialize a bent shape with three segments .