--- glut.c 2000-01-06 17:37:43.000000000 +0100 +++ glut.c 2003-06-29 19:45:40.000000000 +0200 @@ -1457,6 +1457,28 @@ rb_define_const(mGLUT, "CURSOR_NONE", INT2NUM(GLUT_CURSOR_NONE)); rb_define_const(mGLUT, "CURSOR_FULL_CROSSHAIR", INT2NUM(GLUT_CURSOR_FULL_CROSSHAIR)); +#ifdef WIN32 + rb_define_const(mGLUT, "BITMAP_8_BY_13", INT2NUM(2)); + rb_define_const(mGLUT, "BITMAP_9_BY_15", INT2NUM(3)); + rb_define_const(mGLUT, "BITMAP_TIMES_ROMAN_10", INT2NUM(4)); + rb_define_const(mGLUT, "BITMAP_TIMES_ROMAN_24", INT2NUM(5)); +#if (GLUT_API_VERSION >= 3) + rb_define_const(mGLUT, "BITMAP_HELVETICA_10", INT2NUM(6)); + rb_define_const(mGLUT, "BITMAP_HELVETICA_12", INT2NUM(7)); + rb_define_const(mGLUT, "BITMAP_HELVETICA_18", INT2NUM(8)); +#endif +#else /* non win32 */ + rb_define_const(mGLUT, "BITMAP_8_BY_13", INT2NUM((unsigned int)&glutBitmap8By13)); + rb_define_const(mGLUT, "BITMAP_9_BY_15", INT2NUM((unsigned int)&glutBitmap9By15)); + rb_define_const(mGLUT, "BITMAP_TIMES_ROMAN_10", INT2NUM((unsigned int)&glutBitmapTimesRoman10)); + rb_define_const(mGLUT, "BITMAP_TIMES_ROMAN_24", INT2NUM((unsigned int)&glutBitmapTimesRoman24)); +#if (GLUT_API_VERSION >= 3) + rb_define_const(mGLUT, "BITMAP_HELVETICA_10", INT2NUM((unsigned int)&glutBitmapHelvetica10)); + rb_define_const(mGLUT, "BITMAP_HELVETICA_12", INT2NUM((unsigned int)&glutBitmapHelvetica12)); + rb_define_const(mGLUT, "BITMAP_HELVETICA_18", INT2NUM((unsigned int)&glutBitmapHelvetica18)); +#endif +#endif /* fonts */ + callId = rb_intern("call"); WINDOW_CALLBACK_DEFINE(DisplayFunc);