extern int fgPlatformGlutGet ( GLenum eWhat );
extern int fgPlatformGlutDeviceGet ( GLenum eWhat );
extern int *fgPlatformGlutGetModeValues(GLenum eWhat, int *size);
+extern SFG_Font* fghFontByID( void* font );
/* -- LOCAL DEFINITIONS ---------------------------------------------------- */
{
FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutSetOption" );
- /*
- * XXX In chronological code add order. (WHY in that order?)
- */
switch( eWhat )
{
case GLUT_INIT_WINDOW_X:
break;
case GLUT_SKIP_STALE_MOTION_EVENTS:
- fgState.SkipStaleMotion = value;
+ fgState.SkipStaleMotion = !!value;
break;
case GLUT_GEOMETRY_VISUALIZE_NORMALS:
if( fgStructure.CurrentWindow != NULL )
- fgStructure.CurrentWindow->State.VisualizeNormals = value;
+ fgStructure.CurrentWindow->State.VisualizeNormals = !!value;
+ break;
+
+ case GLUT_STROKE_FONT_DRAW_JOIN_DOTS:
+ fgState.StrokeFontDrawJoinDots = !!value;
break;
default:
FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutGet" );
- /* XXX In chronological code add order. (WHY in that order?) */
switch( eWhat )
{
/* Following values are stored in fgState and fgDisplay global structures */
return GL_FALSE;
return fgStructure.CurrentWindow->State.VisualizeNormals;
+ case GLUT_STROKE_FONT_DRAW_JOIN_DOTS:
+ return fgState.StrokeFontDrawJoinDots;
+
default:
return fgPlatformGlutGet ( eWhat );
break;
}
- return -1;
}
/*
default:
return fgPlatformGlutDeviceGet ( eWhat );
}
-
- /* And now -- the failure. */
- return -1;
}
/*