Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
opengl.h
Go to the documentation of this file.
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