Improving the stroke fonts per e-mail from Fliran Echtler dated Sun 5/31/2009 3:56 AM

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@825 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
fayjf 2009-05-31 13:00:44 +00:00
parent 3ba47f5708
commit a5f5c71bac

View File

@ -253,6 +253,10 @@ void FGAPIENTRY glutStrokeCharacter( void* fontID, int character )
for( i = 0; i < schar->Number; i++, strip++ ) for( i = 0; i < schar->Number; i++, strip++ )
{ {
glBegin( GL_LINE_STRIP ); glBegin( GL_LINE_STRIP );
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++ ) for( j = 0; j < strip->Number; j++ )
glVertex2f( strip->Vertices[ j ].X, strip->Vertices[ j ].Y ); glVertex2f( strip->Vertices[ j ].X, strip->Vertices[ j ].Y );
glEnd( ); glEnd( );