MacOS does not provide glutBitmapString function

This commit is contained in:
Krishna Vedala 2020-07-04 11:06:45 -04:00
parent 9a46e99168
commit 8d570b4c28
No known key found for this signature in database
GPG Key ID: BA19ACF8FC8792F7

View File

@ -106,6 +106,13 @@ void test()
#ifdef USE_GLUT // this is set by CMAKE automatically, if available
#ifdef __APPLE__
#include <GLUT/glut.h> // include path on Macs is different
/** A wrapper that is not implemented on MacOS
*/
void glutBitmapString(void *font, char *string) {
for (char *ch = string; *ch != '\0'; ch++) glutBitmapCharacter(font, ch);
}
#else
#include <gl/glut.h>
#endif