#define GLUT_GEOMETRY_VISUALIZE_NORMALS 0x0205
+#define GLUT_STROKE_FONT_DRAW_JOIN_DOTS 0x0206 /* Draw dots between line segments of stroke fonts? */
+
/*
* New tokens for glutInitDisplayMode.
* Only one GLUT_AUXn bit may be used at a time.
for( j = 0; j < strip->Number; j++ )
glVertex2f( strip->Vertices[ j ].X, strip->Vertices[ j ].Y );
glEnd( );
- glBegin( GL_POINTS );
- for( j = 0; j < strip->Number; j++ )
- glVertex2f( strip->Vertices[ j ].X, strip->Vertices[ j ].Y );
- glEnd( );
+
+ if (fgState.StrokeFontDrawJoinDots)
+ {
+ glBegin( GL_POINTS );
+ for( j = 0; j < strip->Number; j++ )
+ glVertex2f( strip->Vertices[ j ].X, strip->Vertices[ j ].Y );
+ glEnd( );
+ }
}
glTranslatef( schar->Right, 0.0, 0.0 );
}
1, /* AuxiliaryBufferNumber */
4, /* SampleNumber */
GL_FALSE, /* SkipStaleMotion */
+ GL_FALSE, /* StrokeFontDrawJoinDots */
1, /* OpenGL context MajorVersion */
0, /* OpenGL context MinorVersion */
0, /* OpenGL ContextFlags */
GLboolean SkipStaleMotion; /* skip stale motion events */
+ GLboolean StrokeFontDrawJoinDots;/* Draw dots between line segments of stroke fonts? */
+
int MajorVersion; /* Major OpenGL context version */
int MinorVersion; /* Minor OpenGL context version */
int ContextFlags; /* OpenGL context flags */
fgStructure.CurrentWindow->State.VisualizeNormals = value;
break;
+ case GLUT_STROKE_FONT_DRAW_JOIN_DOTS:
+ fgState.StrokeFontDrawJoinDots = value;
+ break;
+
default:
fgWarning( "glutSetOption(): missing enum handle %d", eWhat );
break;
return GL_FALSE;
return fgStructure.CurrentWindow->State.VisualizeNormals;
+ case GLUT_STROKE_FONT_DRAW_JOIN_DOTS:
+ return fgState.StrokeFontDrawJoinDots;
+
default:
return fgPlatformGlutGet ( eWhat );
break;