-void CWindingMsg::Draw2D( VIEWTYPE vt )
-{
- int i;
-
- int nDim1 = (vt == YZ) ? 1 : 0;
- int nDim2 = (vt == XY) ? 1 : 2;
- glColor3f(1.0f,0.f,0.0f);
-
- glPointSize(4);
- glBegin (GL_POINTS);
- for(i = 0; i < numpoints; i++)
- glVertex2f (wt[i][nDim1], wt[i][nDim2]);
- glEnd();
- glPointSize(1);
-
- glEnable (GL_BLEND);
- glPolygonMode (GL_FRONT_AND_BACK, GL_FILL);
- glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
- glColor4f(0.133f,0.4f,1.0f,0.5f);
- glBegin (GL_POLYGON);
- for(i = 0; i < numpoints; i++)
- glVertex2f (wt[i][nDim1], wt[i][nDim2]);
- glEnd();
- glDisable (GL_BLEND);
+void CWindingMsg::Draw2D( VIEWTYPE vt ){
+ int i;
+
+ int nDim1 = ( vt == YZ ) ? 1 : 0;
+ int nDim2 = ( vt == XY ) ? 1 : 2;
+ glColor3f( 1.0f,0.f,0.0f );
+
+ glPointSize( 4 );
+ glBegin( GL_POINTS );
+ for ( i = 0; i < numpoints; i++ )
+ glVertex2f( wt[i][nDim1], wt[i][nDim2] );
+ glEnd();
+ glPointSize( 1 );
+
+ glEnable( GL_BLEND );
+ glPolygonMode( GL_FRONT_AND_BACK, GL_FILL );
+ glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA );
+ glColor4f( 0.133f,0.4f,1.0f,0.5f );
+ glBegin( GL_POLYGON );
+ for ( i = 0; i < numpoints; i++ )
+ glVertex2f( wt[i][nDim1], wt[i][nDim2] );
+ glEnd();
+ glDisable( GL_BLEND );