|Century Embedded Technologies Nano-X SDK and Developer's Guide|
|Prev||Appendix D. GLUT Compatibility||Next|
The following functions and/or arguments to functions are missing, and you will have to replace them or comment them out for your code to compile:
glutSetColor(), glutGetColor(), glutCopyColormap()
Spaceball, buttonbox, dials, tablet functions, glutDeviceGet()
Most of the symbols/enumerations have different values than GLUT uses. This will break code that relies on the actual values. The only symbols guaranteed to have the same values are true/false pairs like GLUT_DOWN and GLUT_UP, mouse buttons GLUT_LEFT_BUTTON, GLUT_MIDDLE_BUTTON, GLUT_RIGHT_BUTTON, and GLUT_KEY_F1 thru F12.
The strings passed as menu labels are not copied.
glutPostRedisplay() does not work if called from inside a display function. You must use glutIdleFunc() if you want your display to update continuously.
glutSwapBuffers() does not work from inside a display function. This is on purpose, because FLTK swaps the buffers for you.
glutUseLayer() does not work well, and should only be used to initialize transformations inside a resize callback. You should redraw overlays by using glutOverlayDisplayFunc().
Overlays are cleared before the overlay display function is called. glutLayerGet(GLUT_OVERLAY_DAMAGED) always returns true for compatibility with some GLUT overlay programs. You must rewrite your code so that gl_color() is used to choose colors in an overlay, or you will get random overlay colors.
glutSetCursor(GLUT_CURSOR_FULL_CROSSHAIR) just results in a small crosshair.
The fonts used by glutBitmapCharacter() and glutBitmapWidth() may be different.
glutInit(argc,argv) will consume different switches than GLUT does. It accepts the switches recognized by Fl::args(), and will accept any abbreviation of these switches (such as "-di" for "-display").