mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-21 21:11:57 +03:00
MacOS does not provide glutBitmapString function
This commit is contained in:
parent
9a46e99168
commit
8d570b4c28
@ -106,6 +106,13 @@ void test()
|
|||||||
#ifdef USE_GLUT // this is set by CMAKE automatically, if available
|
#ifdef USE_GLUT // this is set by CMAKE automatically, if available
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
#include <GLUT/glut.h> // include path on Macs is different
|
#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
|
#else
|
||||||
#include <gl/glut.h>
|
#include <gl/glut.h>
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user