| 1 |
// shim to deal with OpenGL headers being at a different path on macOS |
| 2 |
|
| 3 |
#pragma once |
| 4 |
|
| 5 |
// OpenGL headers on Windows use the `WINGDIAPI` macro |
| 6 |
#ifdef _WIN32 |
| 7 |
#include <windows.h> |
| 8 |
#endif |
| 9 |
|
| 10 |
#ifdef __APPLE__ |
| 11 |
|
| 12 |
#include <OpenGL/gl.h> |
| 13 |
#include <OpenGL/glu.h> |
| 14 |
|
| 15 |
// Apple considers OpenGL deprecated. So silence Clang’s warnings about our |
| 16 |
// use of it. |
| 17 |
#pragma clang diagnostic ignored "-Wdeprecated-declarations" |
| 18 |
|
| 19 |
#else |
| 20 |
#include <GL/gl.h> |
| 21 |
#include <GL/glu.h> |
| 22 |
#endif |