-
-
Notifications
You must be signed in to change notification settings - Fork 551
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow frontends to use different headers for OpenGL declarations (#2102)
- Loading branch information
Showing
2 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
#ifndef PLATFORMOGL_H | ||
#define PLATFORMOGL_H | ||
|
||
// if you don't wanna use glad for your platform | ||
// add your header here! | ||
// If you don't wanna use glad for your platform, | ||
// define MELONDS_GL_HEADER to the path of some other header | ||
// that pulls in the necessary OpenGL declarations. | ||
// Make sure to include quotes or angle brackets as needed, | ||
// and that all targets get the same MELONDS_GL_HEADER definition. | ||
|
||
#include "frontend/glad/glad.h" | ||
#ifndef MELONDS_GL_HEADER | ||
#define MELONDS_GL_HEADER "\"frontend/glad/glad.h\"" | ||
#endif | ||
|
||
#include MELONDS_GL_HEADER | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters