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 ---------------------------------------------------- */
fgStructure.CurrentWindow->State.VisualizeNormals = value;
break;
+ case GLUT_MENU_FONT:
+ {
+ void* fontID = (void*)value;
+ SFG_Font* font;
+ font = fghFontByID( fontID );
+ if (!font)
+ fgWarning("glutSetOption(GLUT_MENU_FONT,...): bitmap font 0x%08x not found. Make sure you're not passing a stroke font. Ignoring...\n",fontID);
+ else
+ fgState.MenuFont = fontID;
+ }
+ break;
+
default:
fgWarning( "glutSetOption(): missing enum handle %d", eWhat );
break;