void InitStuff (void) { glEnable(GL_BLEND); glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); //gleSetJoinStyle (TUBE_NORM_PATH_EDGE | TUBE_JN_ANGLE ); rotate_frame[0] = 0.0; rotate_frame[1] = -111.0; int style; /* pick model-vertex-cylinder coords for texture mapping */ //TextureStyle (509); /* configure the pipeline */ style = TUBE_JN_CAP; style |= TUBE_CONTOUR_CLOSED; style |= TUBE_NORM_FACET; style |= TUBE_JN_ANGLE; gleSetJoinStyle (style); // lastx = 121.0; // lasty = 121.0; init_contour(); }
void InitStuff (void) { int style; /* configure the pipeline */ style = TUBE_JN_CAP; style |= TUBE_CONTOUR_CLOSED; style |= TUBE_NORM_FACET; style |= TUBE_JN_ANGLE; gleSetJoinStyle (style); lastx = 121.0; lasty = 121.0; init_contour(); init_taper(); }
void InitStuff (void) { int style; /* pick model-vertex-cylinder coords for texture mapping */ TextureStyle (509); /* configure the pipeline */ style = TUBE_JN_CAP; style |= TUBE_CONTOUR_CLOSED; style |= TUBE_NORM_FACET; style |= TUBE_JN_ANGLE; gleSetJoinStyle (style); lastx = 121.0; lasty = 121.0; init_contour(); }